Because Debian is used as a server, it is a command line. First, download the source code package of mysql5.1 using the wget command, and then decompress it using the tar command,
Groupadd MySQL
Useradd-G MySQL
Enter the decompressed directory,
. /Configure -- prefix =/usr/local/MySQL execution, make compilation, make install installation is complete, here there is an error in configure, the reason is that G ++ is not installed (previously required installation includes GCC, G ++, and make ).
Next, enter/usr/local/MySQL, enter the command sudo./bin/mysqld_safe to start MySQL, And then/usr/local/MySQL/bin/MySQL to enter mysql. An error is returned!
Error 1045 (28000): Access denied for user 'root' @ 'localhost' (using password: Non)
Solution:
Kill the MySQL process
Restart sudo./bin/mysqld_safe -- user = MySQL -- skip-grant-tables -- skip-Networking &
And/usr/local/MySQL/bin/MySQL-u root MySQL
Problem Solving
Soga