473,320 Members | 1,862 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Database Error: Can not connect to MySQL server

2
Hi I already had my wamp server running in green light, and I already opened the localhost using wamp server. the problem is that when I try to open my website folder via localhost this always shows up.

"Database Error. Can not connect to MySQL server"

I'm sorry for this question because I'm not really familiar with PHP and MySQL for PHP, the website file is already running in the internet, they just want me to edit something in the website so what I meant is that it's already a running website, I want to edit it via localhost.
My question is does this error shows that I have a problem connecting to the database in wamp or database of my website? thank you in advance
Dec 8 '12 #1
3 2775
Rangan
8
check whether the mysql server instance is started or not.

start -> run -> services.msc -> click start on mysql
Dec 8 '12 #2
Albert
2
Hi thank you for your reply, I tried to start the service and it said "windows could not start the mysql service on local computer error 2 the system cannot find the file " Do I need to install a MYSQL server? or running the MYSQL in wampserver is fine? sorry for the questions
Dec 10 '12 #3
Rangan
8
It looks like you have 2 other versions of MySQL running on your system

Have you tried another wamp alike, like XAMPP or even installing it yourself??

If so you have not properly uninstalled them and one of them has already grabbed the port mysql uses.

Wamps install of mysql is called wampmysql, so here is how to remove the other 2 versions from your system

Either uninstall the other versions properly if the software they came from is still on your system, or if you have just deleted the folders that the other software came in ( or dont know how the other mysql's got there )

Launch a command window using your admin account or us 'Run as Administrator'

keyin

sc delete MYSQL
sc delete MYSQL5
Dec 10 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: jason mazzotta | last post by:
Hi, I'm rather new to both MySQL and PHP. I've been trying to use PHP to write to a MySQL database. I call mysql_pconnect to get a database connection, but then when I call mysql_db_select, I get...
0
by: David M. | last post by:
Hi, I have this error when I am connected in mysql: ERROR 2006: MySQL server has gone away. No connection. Trying to reconnect... I only did this command: show databases; and received the...
1
by: jiing | last post by:
Now let me describe what I have done and my purpose: Originally, I want to user ports to install phpBB But I found that phpBB doesn't support mysql 5.x (but the ports installed mySQL 5.0.0...
1
by: shun | last post by:
Hello, I need an sample program to connect mysql server by using odbc. thanks in advance
6
by: GD | last post by:
Hi All, I've got MySQL 5.0.21 running on Windows Server 2003, and php running on Apache on a Linux box (Fedora Core 4). Previously when the pages were running on an IIS server the connection...
1
by: Ananthu | last post by:
Hi I dont know how to connect mysql server in my plug-in project. Can you please send me some example code of connectivity in plug-in project. Please help me...
6
by: markodilore | last post by:
Hey Guys, you helped me once when I tryied to create a database : "Access denied for user ''@'localhost' ". On my Mac OS 10.4, I had no problem creating database and modifying it from the terminal....
2
by: mra | last post by:
pls help i have some probles while connecting mysql server from a client machine using visual basic. thanks in advance
1
by: naveenkongati | last post by:
Hi, Our mysql server is installed on Linux Fedora machine. When I try to acces MySql server from a windows based remote location using a GUI TOOL, i am getting the following error "Error...
8
Vkas
by: Vkas | last post by:
i have a domain www.thesunriseschool.com for connecting the database i am using <?php $sId=session_id(); $uIp=$_SERVER; $time=time(); $date_now=date("d/m/Y", $time);...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.