MySQL database has a database named MySQL;Yes, it's a bit of a detour, and it's understandable to read it more than two times.The execution show tables; can be found to have so 28 tables under it;mysql> use MySQL;Database changedMysql> Show tables;+-
Locate the MySQL configuration file My.ini
Add Skip-grant-tables under [mysqld]
Win+r shortcut key Input cmd then enter the command net stop MySQL finally make the directory point to the bin directory in the MySQL installation directory
1. Stop MySQL Service2. Open the CMD command console and go to the Mysql\bin directory.3. Enter Mysqld--skip-grant-tables carriage return. CMD console, stopped.4. Open the CMD command console again and go to the Mysql\bin directory.5. Enter MySQL
1, if there is no password, thenMysql-u Rootmysql> SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' Newpass ');2. If you already have a password, you can use:mysqladmin-u root Password "Newpass"If Root has already set a password, use the
The modified users are listed as root.first, the root of the original myql password;Method One:Outside the MySQL system, use the Mysqladmin#mysqladmin-u root-p Password "test123"Enter Password: "Enter the original password"Method Two:By logging into
Stop all MySQL service processes firstOpen the first cmd window and go to the MySQL bin directory to execute the following command#mysqld--skip-grant-tablesNote that at this point in time (the CMD window cannot continue to be used.) We re-open a cmd
To the scene MySQL introduction My.ini
Added to the following [Mysqld] Skip-grant-tables
Win+r hotkey into cmd and then enter the command net stop MySQL last point, make folders MySQL folder under folder of Bin
Input command mysqld-nt--skip-
1. End the currently running MySQL process.#/etc/init.d/mysql Stop2. Run in MySQL Safe mode and skip permission verification. #/usr/bin/mysqld_safe--skip-grant-tables3. Re-open a terminal to log in to MySQL as root. # mysql-u Root4, modify the root
First, open the MySQL console via Wamp.Prompt for password, because it is now empty, so press ENTER directly.Then enter "Use MySQL", meaning that using MySQL database, prompt "database changed" on the line.thenEnter the SQL statement for the
1. Configure the root password for MySQLBy default, MySQL does not have a password and can be accessed directly:[Email protected] ~]# Mysql-urootBelow we set the root password:[Email protected] ~]# mysqladmin-uroot password ' 123456 'Enter the
Wampserver the password is empty after installation,There are two common ways to modify:First, through the phpMyAdmin directly modified;The second is to modify the MySQL console using Wamp.The first type:① in the phpMyAdmin interface, click "User",
MySQL The root user forgot password recovery method:1. Close all running mysqld processes first:Killall mysqld2. Start MySQL with the Skip authorization table parameter: Mysqld_safe--skip-grant-tables--user=mysql &3, for [email protected] To set a
Sudo/etc/init.d/mysql stopsudo mysqld_safe--user=mysql--skip-grant-tables--skip-networkingMysql-uroot-pEnter your own MySQL passwordmysql> use MySQL;Reading table information for completion of table and ColumnNamesCan turn off this feature to get a
Transferred from: www.2cto.com/database/201504/387589.html
Wampserver the password is empty after installation,
There are two common ways to modify :
First, through the phpMyAdmin directly modified;
The second is to modify the MySQL
Wamp after the installation, MySQL password is empty, then how to modify it? Actually very simple, through a few instructions on the line, below I step by step to operate.First, open the MySQL console via Wamp.Prompt for the original password, if it
1. Single InstanceNow stop the database/etc/init.d/mysqld stopUse the following command to log inMysqld_safe--skip-grant-tables--user=mysql &You can now log in using MySQLMysql-urootAnd then you can change the password.Update Mysql.user set Password=
Method 1: Use the Set password commandMysql-u Rootmysql> SET PASSWORD for ' root ' @ ' localhost ' = PASSWORD (' Newpass ');Method 2: Use Mysqladminmysqladmin-u root Password "Newpass"
If Root has already set a password, use the following
Root password forgotten, reset the root password of MySQL: First, modify the MySQL configuration file my.cnf 1. In paragraph [mysqld], add one sentence: skip-grant-tables
1. After the successful installation, through phpMyAdmin into MySQL, click on the "User" menu, the user "root" host "localhost" click Edit Permissions, the following has an option "Modify password", enter the password you want, such as: 123456.
2.
MySQL password expired, today encountered a connection to MySQL, always connected not up,
Error Symptom 1:
An attempt by a client to checkout a Connection has timed out
The first time a connection timeout error occurred, the first reaction is to
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.