MySQL forgot the root password in Windows
Mysqld-nt -- skip-grant-tables
Mysqladmin-u root flush-privileges password "newpassword"
----------------------------------------
Tip: 1045 access denied for user 'root' @ 'localhost' using password yesI
Solution to MySql error code 1045 in Windows
The code is as follows: error code 1045Access denied for user 'root' @ 'localhost' (using password: YES)
The solution is to reset the root user password. the procedure is as follows on Windows:1. log
! (Optional) why does it change to utf8 after I execute the following command line, but after I exit mysql, it becomes gbk encoded again? mysql & gt; SETcharacter_set_clientutf8; mysql & gt; SETcharacter_set_resultsutf8; mysql & gt; SETcharacter_set_
Cacti Monitoring Server data migrationIn response to customer demand and discuss with Wang colleagues, in the BJD environment is missing a standby cacti monitoring server, the original cacti monitoring server needs to be migrated to the new
My system is ubuntu6.06. The newly installed MySQL always has an error prompt when entering the MySQL tool:
# Mysql-uroot-P
Enter password:
Error 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: No)
Use the methods
The following articles mainly introduce the correct procedures for MySQL database operations, as well as descriptions of some things worth attention during the installation process. At the same time, I would like to give you some advice, in the
. Mysql tutorial
Download the mysql for linux rpm package on the following page
Http://www.mysql.com/downloads/down...3.52-1.i386.rpmHttp://www.mysql.com/downloads/down...3.52-1.i386.rpm
Save to the/home/tmp directory
Command
lamp,php Environment Construction
Install MYSQL5 + Apache2 + php5+phpmyadmin using the Apt-get method:
Please look at the Ubuntu wiki First, (http://wiki.ubuntu.org) above is very detailed. But I did not succeed by doing the first time. APACHE2,PHP5,
Transfer Note: If there is no Apache + PHP + MySQL environment, please refer to my blog(1) First download WordPress,
sudo wget http://wordpress.org/latest.tar.gz
(2) when the download is complete, unzip the
sudo TAR–XZVF
Article turned from: http://www.2cto.com/os/201104/86881.htmlHere is the online method, I use the first method, tested effective.Method One:#/etc/init.d/mysql Stop# Mysqld_safe--user=mysql--skip-grant-tables--skip-networking &# mysql-u Root
1045 This problem can be resolved by changing the password, the following is unable to log in the case of the change password:Enter the MySQL bin directory under DOS, enter mysql-uroot-p and then enter the password or a 1045 error will occur, such
Copy Code code as follows:
Error code 1045
Access denied for user ' root ' @ ' localhost ' (using Password:yes)
The workaround is to reset the root password by following the steps in the Windows platform:1, as a system administrator
Use the exclamation mark (! A method that prohibits user terminals from entering.
Copy Code code as follows:
Mysql> grant all privileges in wubx.* to ' wubx ' @ ' 172.16.100.185′identified by ' fd52!wubx&, ';
Query OK, 0 rows Affected (0.00
First, start/close MySQL
(1) Start MySQL service:net start MySQL
(2) Stop MySQL service: net stop MySQL
Second, login/exit MySQL
First we take a look at some important MySQL parameters, the following table lists some of the important MySQL
Landing on the Cloudera manager found that a lot of the newspaper space, hand-cheap will be all deleted/tmp directory, and then restart the server and agent, found that the agent can start normally, but the server does not normally start, view log,
1, MySQL installation after the password can not be landed problem Then you need to go into the/etc/mysql directory and check the username and password inside, and then sudo vim debian.cnf Use the username and password in this file to enter MySQL,
Remember, the original and Linux under the solution is not the same.
The code is as follows
Copy Code
# Killall-term MYSQLD//Kill all MySQL processes first#/usr/local/bin/mysqld_safe--skip-grant-tables &
will
1, CTRL + C Comparison of violence, is to send terminal to the current program, such as you are running a search function, the file is looking for, CTRL + C will force the end of the current process.
2, CTRL + Z is the current program hangs,
# mysqladmin-uroot-p password ' newpassword '
Enter Password:
Mysqladmin:connect to server at ' localhost ' failed
Error: ' Access denied for user ' root ' localhost ' (using Password:yes) '
Now finally I found the solution, as follows (please
Database overviewWhat is DataSymbolic records describing things are called dataWhat is a databaseThe database is the warehouse where the data is stored, except that the warehouse is on a computer storage device, and the data is stored in a certain
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.