全部博文(52)
分类: Mysql/postgreSQL
2009-03-28 13:27:09
[root@localhost ~]# rpm -ivh MySQL-server-5.1.7-0.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-server ########################################### [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 localhost.localdomain password 'new-password'
See the manual for more instructions.
NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run
the /usr/bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
Support MySQL by buying support/licenses at
Starting MySQL[确定]
下面客户软件的安装,这是我们的客户端,比如mysql,mysqladmin等
[root@localhost ~]# rpm -ivh MySQL-client-5.1.7-0.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-client ########################################### [100%]
下面是共享库的安装,
[root@localhost ~]# rpm -ivh MySQL-shared-5.1.7-0.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-shared ########################################### [100%]
然后
[root@localhost mysql]# cp my-medium.cnf /etc/my.cnf
[root@localhost mysql]# /etc/init.d/mysql start
Starting MySQL [确定]
[root@localhost mysql]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1 to server version: 5.1.7-beta
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql>
好,OK,
注意事项:前面的已安装库等要写全部卸载,不然你发现诸如mysqlmysql manager and pid-file was not found等错误。