mysql linux 安装
作者 佚名技术
来源 Linux系统
浏览
发布时间 2012-04-03
[root@myblogserver opt]# rpm -ivh MySQL-server-advanced-5.5.8-1.rhel5.i386.rpm Preparing... ########################################### [100%] 1:MySQL-server-advanced ########################################### [100%] PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password ''new-password'' /usr/bin/mysqladmin -u root -h myblogserver password ''new-password'' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. Please report any problems with the /usr/bin/mysqlbug script! [root@myblogserver opt]# netstat -nat Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:611 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN tcp 0 0 :::22 :::* LISTEN tcp 0 132 ::ffff:192.168.1.110:22 ::ffff:192.168.1.100:64766 ESTABLISHED [root@myblogserver ~]# /usr/bin/mysql_install_db Installing MySQL system tables... OK Filling help tables... OK To start mysqld at boot time you have to copy support-files/mysql.server to the right place for your system PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password ''new-password'' /usr/bin/mysqladmin -u root -h myblogserver password ''new-password'' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqld_safe & You can test the MySQL daemon with mysql-test-run.pl cd /usr/mysql-test ; perl mysql-test-run.pl Please report any problems with the /usr/bin/mysqlbug script! [root@myblogserver ~]# /usr/bin/mysqld_safe & [1] 6145 [root@myblogserver ~]# 110525 17:42:09 mysqld_safe Logging to ''/var/lib/mysql/myblogserver.err''. 110525 17:42:09 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql [root@myblogserver ~]# service mysql status MySQL running (6199)[确定] [root@myblogserver ~]# mysql Welcome to the MySQL monitor. Commands end with ; o |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |
你可能对下面的文章感兴趣
上一篇: linux-Vi使用方法下一篇: linux下DHCP服务器
关于mysql linux 安装的所有评论