您的位置
主页 > 网站技术 > 数据库 > » 正文

Centos5.5中安装Mysql5.5过程分享(3)

来源: 锦尚中国 点击:


FATAL ERROR: Could not find./bin/my_print_defaults
If you compiled from source, you need torun 'make install' to
copy the software into the correct locationready for operation.
If you are using a binary release, you musteither be at the top
level of the extracted archive, or pass the --basedir option
pointing to that location.

解决方法:

复制代码 代码如下:


[root@local ~]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data

再启动mysql

复制代码 代码如下:


[root@local ~]# /usr/local/mysql/bin/mysqld_safe --user=mysql

注册mysql服务,开机自动启动

1.设置mysql配置文件到/etc目录

复制代码 代码如下:


[root@local ~]# cp /usr/local/mysql/support-files/my-medium.cnf/etc/my.cnf 

2.设置mysql开机自启

复制代码 代码如下:




首页  - 关于站长圈  - 广告服务  - 联系我们  - 关于站长圈  - 网站地图  - 版权声明