Home > Backend Development > PHP Tutorial > mysql一直连接不上,该如何解决

mysql一直连接不上,该如何解决

WBOY
Release: 2016-06-13 10:27:09
Original
837 people have browsed it

mysql一直连接不上
我昨天写的php还可以对mysql进行操作,今天重启电脑以后就一直显示unable to connect

$db=mysql_connect('localhost', 'bp6am', '123') 
or die('unable to connect'); 
?>

------解决方案--------------------
启动mysql服务。

Related labels:
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