当前位置: 技术问答>linux和unix
请大虾指点一下!!!启动mysql
来源: 互联网 发布时间:2015-11-25
本文导语: 刚在linux7.3下装了一个mysql4.0.18但是安装后启动有问题,具体情况如下: 用root用户安装,安装目录/usr/local/mysql-4.0.18 在/usr/local/mysql-4.0.18/bin 下输入指令 [root@localhost bin]# mysql bash:myqsql:commard not found [root@localhost ...
刚在linux7.3下装了一个mysql4.0.18但是安装后启动有问题,具体情况如下:
用root用户安装,安装目录/usr/local/mysql-4.0.18
在/usr/local/mysql-4.0.18/bin 下输入指令
[root@localhost bin]# mysql
bash:myqsql:commard not found
[root@localhost bin]# mysql -u -root -password
can't connect to local MySQL server through socket '/tmp/mysql.sock'(2)
[root@localhost bin]# mysqld_safe -u root -password
chown:'mysql': invalid user
starting mysqld deamon with databases form /usr/local/mysql-4.0.18/var
060408 10:26:58 mysqld ended
(其实之前我用这个指令成功启动过的,其他指令就没有启动成功。后来输入了一些添加一个叫mysql用户的指令和权限操作之后就启动不了了!)
切换到support-files
[root@localhost support-files]# ./mysql.server start
bash: ./mysql.server: /bin/sh: bad interpreter: permission denied
[root@localhost support-files]# mysql
can't connect to local MySQL server through socket '/tmp/mysql.sock'(2)
请大虾指点一下!!!
用root用户安装,安装目录/usr/local/mysql-4.0.18
在/usr/local/mysql-4.0.18/bin 下输入指令
[root@localhost bin]# mysql
bash:myqsql:commard not found
[root@localhost bin]# mysql -u -root -password
can't connect to local MySQL server through socket '/tmp/mysql.sock'(2)
[root@localhost bin]# mysqld_safe -u root -password
chown:'mysql': invalid user
starting mysqld deamon with databases form /usr/local/mysql-4.0.18/var
060408 10:26:58 mysqld ended
(其实之前我用这个指令成功启动过的,其他指令就没有启动成功。后来输入了一些添加一个叫mysql用户的指令和权限操作之后就启动不了了!)
切换到support-files
[root@localhost support-files]# ./mysql.server start
bash: ./mysql.server: /bin/sh: bad interpreter: permission denied
[root@localhost support-files]# mysql
can't connect to local MySQL server through socket '/tmp/mysql.sock'(2)
请大虾指点一下!!!
|
把my.cnf里配置为datadir的目录及其所有子目录和文件属主改为mysql。用chown -R改。
|
http://blog.csdn.net/blog51/archive/2006/05/19/745418.aspx
说得很清楚
说得很清楚
|
你的那个mysql的安装包内就有详细的说明,看一下readme与里面的文档