运行mysql报错!!!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)Re: 运行mysql报错!!!
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)唉,就算你用sql server,也要在windows下启动sql server的服务啊:-D /etc/rc.d/init.d/mysqld start PHP Server Builder在Magiclinux1.1final上面安装完成apache1.3.27+PHP4.3.0+Mysql4.0.8+PHPMyAdmin2.3.3+ZendOptimizer2.0.3
我是按照这篇文章安装的:
下载PHP Server Builder最新版本,启动xwindows,在xwindows中启动命令行,执行bash ./install.bin即可启动图形安装,按照提示进行安装即可
安装成功后进入安装目录中的apache/bin目录执行httpd,可启动apache,进入mysql/bin目录,执行./mysqld -u root &可启动mysql, 启动后打开浏览器,地址栏输入http://localhost或ip地址即可看到phpinfo显示的相关信息,输入http://localhost/phpmyadmin即可进行管理mysql
注:在最后阶段,由于需要执行shell脚本,视计算机不同,时间会稍长,请耐心等待
原文:
http://202.205.160.7/psb/
我的问题是:
apache+php4.30可以运行正常,但是,我进入mysql/bin目录,执行./mysqld -u root 启动mysql,mysql4.08无法启动,也是显示:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
为什么一定要在/etc/rc.d/init.d/mysqld start里面启动
/etc/rc.d/init.d/mysqld start
页:
[1]