Mysql source code installation-Linux general technology-Linux technology and application information, the following is a detailed description. Author: tiansui
I haven't written anything for a long time. On these days of work, I got some methods to install Mysql. This method can install multiple Mysql on a linux service at the same time.
The source code of mysql. the serial number is mysql-5.0.20a.tar.gz. Of course, the other code can be used only for testing. Red hat linux as 4 is used for linux.
No password by default. Of course, if you delete/etc/my. cnf, do not use the following -- defaults-file =/test/mysql/my. cnf
./Bin/mysql-u root -- socket =/tmp/mysql3306. You should know the reason! ^_^!
11. set as a service and start it yourself.
For a service, you only need to put mysql/share/mysql. server under/etc/init. d/and change it to mysql.
Command:
Mv share/mysql. server/etc/init. d/mysql
Chmod 775/etc/init. d/mysql
Chkconfig -- add mysql
To sum up, this is just a mysql with port 3306 installed. If you want to install an msyql, just change the content of the my. cnf file in the same steps.
[Client]
# Password = your_password
Port = 3310
Socket =/tmp/mysql3310.sock
# The MySQL server
[Mysqld]
Port = 3310
Socket =/tmp/mysql3310.sock
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.