- 论坛徽章:
- 0
|
本帖最后由 lythemaster 于 2011-06-02 00:15 编辑
我要在Suse下安装,mySQL5.5,
本来以为Linux都是通用的,采用通用的rpm安装法,下载5.5的rpm包,安装,
输入命令:- rpm -i MySQL-server-5.5.10-1.linux2.6.x86_64.rpm
复制代码 结果失败,提示很多文件“conflict”,
原来SUSE下,已经自带了一个mySQL的rpm包,但又没有安装好。
通过命令查看一下果然:
- linux:~ # rpm -qa | grep mysql
- libmysqlclient15-5.0.67-13.20.1
- mysql-5.0.67-13.20.1
- mysql-client-5.0.67-13.20.1
- libmysqlclient_r15-5.0.67-13.20.1
- libqt4-sql-mysql-4.6.2-1.6.11
复制代码 -
于是尝试安装系统自带的mySQL,运行“mysql_install_db”命令
- linux:/ # mysql_install_db
- Installing MySQL system tables...
- OK
- Filling help tables...
- OK
- PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
- To do so, [b]start the server, then issue the following commands[/b]:
- /usr/bin/mysqladmin -u root password 'new-password'
- /usr/bin/mysqladmin -u root -h linux 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 mysql-test ; perl mysql-test-run.pl
- Please report any problems with the /usr/bin/mysqlbug script!
复制代码 通过系统返回信息,可以看到,命令执行成功,
接着要做2件事:
1. 起动mySQL server,
2. 在起动 server的前提下,才能给root 设密码。
-
我遇到的问题是无法起动server,
起动server输入如下命令:
- linux:/ # cd /usr
- linux:/usr # /usr/bin/mysqld_safe
- nohup: ignoring input and redirecting stderr to stdout
- Starting mysqld daemon with databases from /var/lib/mysql
- STOPPING server from pid file /var/lib/mysql/linux.pid
- 110602 00:19:28 mysqld ended
复制代码 返回信息提示mySQL起动失败 |
|