首页 电脑 电脑学堂 查看内容

mysql linux 安装

2011-5-26 10:57 565 0

摘要:   [root@myblogserver opt]# rpm -ivh MySQL-server-advanced-5.5.8-1.rhel5.i386.rpm  Preparing... ...
关键词: nbsp MySQL myblogserver PASSWORD root 0.0 usr server LISTEN bin

  [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 ; or \g.  Your MySQL connection id is 1  Server version: 5.5.8-enterprise-commercial-advanced MySQL Enterprise Server - Advanced Edition (Commercial)  Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.  Oracle is a registered trademark of Oracle Corporation and/or its  affiliates. Other names may be trademarks of their respective  owners.  Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.  mysql>
声明:文章版权归原作者所有 部分文章转自互联网 如有侵权请联系 [邮箱地址] 删除

路过

雷人

握手

鲜花

鸡蛋

最新评论

返回顶部