install mysql on gentoo linux
时间:2007-03-26 来源:zyq26672607
mySQL
install mysql in the server
#emerge mysql
create the initial databases
#emerge --config mysql (type the mysql password of root)
start mysql
#/etc/init.d/mysql start
adding security
#mysql_secure_installation
Enter current password for root (enter for none):
Change the root password? Y/n? y
New password:
Re-enter new password:
Password updated successfully!
Remove anonymous users? Y/n? y
Disallow root login remotely? Y/n? y
Remove test database and access to it? Y/n? y
Reload privilege tables now? Y/n? y
adding users
#mysql_setpermission
adding mysql in the boot
#rc-update add mysql default
相关阅读 更多 +