如何让mysql_安装_数据库工作?
我是MySql新手,请帮助我。 首先要安装MySql 5.5.7-rc,我使用了这个命令->如何让mysql_安装_数据库工作?,mysql,mysql-5.5,Mysql,Mysql 5.5,我是MySql新手,请帮助我。 首先要安装MySql 5.5.7-rc,我使用了这个命令-> sudo./configure--prefix=/usr/local/mysql--with plugin partition--with tcp port=3308--with unix socket path=/tmp/mysql1.sock--with debug $sudo make $sudo make安装 然后,当我执行下面的命令时,我得到了几个错误 $sudo ./mysql_instal
sudo./configure--prefix=/usr/local/mysql--with plugin partition--with tcp port=3308--with unix socket path=/tmp/mysql1.sock--with debug
$sudo make
$sudo make安装
$sudo ./mysql_install_db --datadir=/usr/local/mysql/data --basedir=/usr/local/mysql/ --user=mysql
错误:::
Installing MySQL system tables...
connect: Connection refused
Installation of system tables failed! Examine the logs in
/usr/local/mysql/data for more information.
You can try to start the mysqld daemon with:
shell> /usr/local/mysql//bin/mysqld --skip-grant &
and use the command line tool /usr/local/mysql//bin/mysql
to connect to the mysql database and look at the grant tables:
shell> /usr/local/mysql//bin/mysql -u root mysql
mysql> show tables
Try 'mysqld --help' if you have problems with paths. Using --log
gives you a log in /usr/local/mysql/data that may be helpful.
Please consult the MySQL manual section
'Problems running mysql_install_db', and the manual section that
describes problems on your OS. Another information source are the
MySQL email archives available at http://lists.mysql.com/.
Please check all of the above before mailing us! And remember, if
you do mail us, you MUST use the /usr/local/mysql//scripts/mysqlbug script!
然后我尝试了“/usr/local/mysql//bin/mysql-u root-mysql”,结果发现
错误2002(HY000):无法通过套接字“/tmp/MySQL.sock”连接到本地MySQL服务器(2)
但是/tmp/mysql.sock
和/var/run/mysqld/mysqld.sock
不存在。我查过了
请给出一些克服这个问题的建议
甚至mysqld服务也没有启动。“连接:连接被拒绝”表示服务器没有在预期的位置侦听;我理解迟一年的回答可能有点晚,但首先应该从发行版提供的内容或官方版本开始,而不是一个相当复杂的产品的RC的自制源代码版本
也许那些提出这个问题的人会发现这个问题的公认答案是有用的:只是一个疯狂的想法:检查/usr/local/mysql/data中的日志,了解更多信息,先生,我做了,但什么都没有。。