• Register
0 votes
28 views

Problem :

I am new to WampServer and while trying to install the Joomla 3.3.4 on my localhost in a Database Configuration I have encountered below error

“Could not connect to the database. Connector returned number: Could not connect to MySQL." 

I also tried to leave the password as blank, but still it didn’t connect.

8 4 2
2,300 points

1 Answer

0 votes

Solution :

I came across your question. I can help you in resolving it.

When the Mysql service is stopped then such error normally occurs so please check if it is running or not.

Please try to use "root" as your username and try to use empty as your password also try to use "joomla" as your database name.

You can also cross check if you have assigned your username which you have created in the PHPmyAdmin to your actual database or not.

You can also try to replace the localhost by 127.0.0.1

Usually we just try do the copy and paste the database name and username it is not correct

As sometimes the server setting may provide a prefix before a database name or the username such as the empty space and it is always different from your typed databse or username and we dont realize the difference as it is just the empty space.

 Hope it fixes your issue.

5 2 1
4,980 points

Related questions

0 votes
1 answer 109 views
109 views
Problem : I am new to MySQL driver. I am trying to connect to the database server using MySQL driver but I always face the below error. A Database Error Occurred Unable to connect to your database server using the provided settings. Filename: core/Loader.php Line Number: 232 Please ... I am trying to fix above error from past couple of days but unable to find any solution on it. How can I fix it?
asked Feb 25 mphil 2.3k points
1 vote
1 answer 14 views
14 views
Problem : I am very new to MySQL Server. I am newly assigned to this MySQL Server project. If I try to connect with the local MySQL server during my assigned test suite it shows me the below error: "Can't connect to local MySQL server through socket '/tmp/ ... that exception I can connect with my exact same parameters. I am very confused about above error. Can some expert help me in fixing it?
asked Apr 8 morrisBson 3.2k points
0 votes
1 answer 54 views
54 views
Problem : My problem kicked off when I was unable to log in as the root any more on the mysql install. I was trying to run mysql without the passwords turned on however when I ran my below command : # mysqld_safe --skip-grant-tables & I never got my prompt back. ... socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
asked Jan 4 alecxe 7.5k points
0 votes
1 answer 39 views
39 views
Problem : My problem started with me when I was unable to log in as root any more on the mysql install. I was trying to run mysql without passwords turned on... but whenever I ran the below command # mysqld_safe --skip-grant-tables & I would never get my prompt back ... socket '/var/run/mysqld/mysqld.sock' (2)' Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
asked Dec 27, 2019 alecxe 7.5k points
0 votes
1 answer 5 views
5 views
Hello, can somebody show me a PHP code snippet that demonstrate on how to search and display the data from the database? The table below demonstrate the format as well! Name Work Age Cell Labourer 30 Jun Associate 34 Riza Cashier 36 As you can see, the example above have one thing ... above 30. Let us say that I have 100 people and I just want to list those whose age are from 30 to 40. Thank you!
asked Oct 12 robin_gallo 300 points