search
HomeDatabasephpMyAdminUnable to log in to phpmyadmin solution

Unable to log in to phpmyadmin solution

Dec 18, 2019 pm 04:58 PM
phpmyadmin

Unable to log in to phpmyadmin solution

Solution when an error occurs and cannot log in to phpmyadmin:

Find config.inc.php and change the password directly;

If you cannot find it, create it yourself The config.inc.php file is placed in the first folder:

$cfg['PmaAbsoluteUri'] = "";
$cfg['Servers'][1]['host'] = "localhost";
$cfg['Servers'][1]['auth_type'] = 'config';
$cfg['Servers'][1]['user'] = "root";
$cfg['Servers'][1]['password'] = "你的新密码";
?>

1. phpmyadmin cannot log in after changing the password. It is possible that phpmyadmin fails to change the mysql password. You can log in directly using the original password.

mysql reset password:

mysql>use mysql
mysql>set password for 'root'@'localhost'=password('newpasswd');
mysql>set password for 'root'@'%'=password('newpasswd');

2, it is also possible that you have forgotten the password you just changed. You can change the Mysql password again. The steps are as follows

The specific steps are as follows:

1. Close the running MySQL.

2. Open the DOS window and go to the mysql\bin directory.

3. Enter mysqld-nt --skip-grant-tables and press Enter. If no prompt message appears, you're right.

4. Open another DOS window (because the DOS window just now cannot be moved) and go to the mysql\bin directory (cd).

5. Enter mysql and press Enter. If successful, the MySQL prompt will appear>

6. Connect to the permission database>use mysql; (> is the original prompt, Don’t forget the semicolon at the end)

7. Change password: > update user set password=password("123") where user="123";

8. Refresh permissions ( Required steps)>flush privileges;

9. Exit> \q

10. Log out of the system, re-enter, open MySQL, use user name 123 and the new password 123 just set Login.

Related recommendations: phpmyadmin tutorial

The above is the detailed content of Unable to log in to phpmyadmin solution. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
phpMyAdmin's Interface: Simplifying SQL OperationsphpMyAdmin's Interface: Simplifying SQL OperationsApr 17, 2025 am 12:01 AM

phpMyAdmin simplifies SQL operations through a graphical interface and improves database management efficiency. 1) Provide an intuitive GUI without directly writing SQL statements; 2) Interact with MySQL through PHP scripts to transparently handle complex operations; 3) Support basic operations such as creating tables and advanced functions such as data export. Pay attention to permissions and SQL syntax errors when using it, and optimize queries, regular backups and ensure security settings.

SQL and phpMyAdmin: A Beginner's GuideSQL and phpMyAdmin: A Beginner's GuideApr 16, 2025 am 12:02 AM

Beginners can learn SQL and phpMyAdmin from scratch. 1) Create database and tables: Create a new database in phpMyAdmin and create tables using SQL commands. 2) Execute basic query: Use SELECT statement to query data from the table. 3) Optimization and best practices: Create indexes, avoid SELECT*, use transactions, and regularly back up databases.

MySQL, phpMyAdmin, and Database Administration: A GuideMySQL, phpMyAdmin, and Database Administration: A GuideApr 15, 2025 am 12:01 AM

MySQL and phpMyAdmin are powerful database management tools. 1.MySQL is an open source relational database management system, and phpMyAdmin is a MySQL management tool based on the Web. 2.MySQL works through the client-server model, and phpMyAdmin simplifies database operations. 3. Basic usage includes creating tables and data operations, and advanced usage involves stored procedures and triggers. 4. Common errors include SQL syntax errors, permission issues and performance bottlenecks. 5. Optimization techniques include reasonable use of indexes, optimized query, regular maintenance and backup and recovery.

phpMyAdmin: Unveiling Its Relationship to SQLphpMyAdmin: Unveiling Its Relationship to SQLApr 14, 2025 am 12:11 AM

phpMyAdmin implements the operation of the database through SQL commands. 1) phpMyAdmin communicates with the database server through PHP scripts, generates and executes SQL commands. 2) Users can enter SQL commands in the SQL editor for query and complex operations. 3) Performance optimization suggestions include optimizing SQL queries, creating indexes and using pagination. 4) Best practices include regular backups, ensuring security and using version control.

phpMyAdmin: Enhancing Database ProductivityphpMyAdmin: Enhancing Database ProductivityApr 13, 2025 am 12:04 AM

phpMyAdmin improves database productivity through an intuitive web interface: 1. Simplify the creation and management of databases and tables; 2. Support complex SQL queries and data operations; 3. Provide relationship view functions to manage table relationships; 4. Optimize performance and best practices to improve efficiency.

phpMyAdmin's Purpose: Managing MySQL Databases with EasephpMyAdmin's Purpose: Managing MySQL Databases with EaseApr 12, 2025 am 12:14 AM

phpMyAdmin is a web-based MySQL database management tool. 1. It supports basic CRUD operations and advanced features such as database design and performance optimization. 2. Run through the web server, accept user input and convert it to MySQL commands. 3. The basic usage includes creating a database, and the advanced usage supports query optimization. 4. Common errors such as insufficient permissions can be solved by checking user permissions. 5. Performance optimization includes index optimization, query optimization and database design.

The Roles of MySQL and phpMyAdmin: A Detailed BreakdownThe Roles of MySQL and phpMyAdmin: A Detailed BreakdownApr 11, 2025 am 12:14 AM

The roles of MySQL and phpMyAdmin are to store and manage data and provide user-friendly database management interfaces. MySQL performs data operations through SQL, phpMyAdmin interacts with MySQL through HTTP requests, and converts user operations into SQL commands.

phpmyadmin connection to databasephpmyadmin connection to databaseApr 10, 2025 pm 11:09 PM

How to connect to the database through phpMyAdmin: Visit the phpMyAdmin website and log in with credentials. Select the database to connect to. Under the Actions tab, select the Export option. Configure export settings and select format, table, and data range. Save the exported file. Select the Import tab in the target database and browse the exported files. Click the "Execute" button and use the "Query" tab to verify that the import is successful.

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Atom editor mac version download

Atom editor mac version download

The most popular open source editor