Home > Database > Mysql Tutorial > body text

Ubuntu下MySQL Server与Client的冲突

WBOY
Release: 2016-06-07 16:57:50
Original
1233 people have browsed it

昨个才写的Ubuntu下LAMP配置文档,今天就进不去自己的mysql了,奇了怪了!说来也怪,同样的配置步骤,单位那个破机器,怎么捣鼓怎

昨个才写的Ubuntu下LAMP配置文档,今天就进不去自己的mysql了,奇了怪了!

说来也怪,同样的配置步骤,单位那个破机器,怎么捣鼓怎么听话,家里这个新二奶,反而调教不出来了!

开机后,mysql server并没有自动启动,这样就罢了,,锻炼动手能力嘛~

可问题是我一敲mysql,竟然说没这么个命令:

The program 'mysql' can be found in the following packages:
* mysql-client-core-5.1
* mysql-client-5.0
* mysql-cluster-client-5.1

那好吧,虽然昨天不知道怎么就进去了,既然让我装个客户端,那咱就装呗。

apt-get install下,就装好了,装完再一弄,得,连服务器都起不来了……

上网搜了下,有大牛说是因为两个my.cnf,冲突了。

想想,还真是,/etc下,一个server的,一个client的。

apt-get remove下,搞掉client,再把/etc/mysql/文件夹删掉,服务器起来了~

这回我不耍帅了,不再根目录敲mysql了行吧,我去bin下面敲,OK,进去了!

原来mysql server自己就有登录的程序,就是bin/mysql命令。我还多此一举搞个客户端,活该啊。。

linux

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template