• Register
0 votes

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

Please log in or register to answer this question.

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

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 131 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, 2020 mphil 2.3k points
1 vote
1 answer 24 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, 2020 morrisBson 3.2k points
0 votes
1 answer 71 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, 2020 alecxe 7.5k points
0 votes
1 answer 43 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 17 views
Problem: I need to filter mysql records via search text input. I need to search either partly or full city or country of my transactions table. What do I do? Do I need to have two text input? Here is my code: <?php $conn = new mysqli($servername, $username, $password, ... tr> <?php } ?> </tbody> </table> Is there any possiblity also that my page will not refresh when I submit the search form?
asked Nov 9, 2020 Reina Joy 360 points
0 votes
1 answer 21 views
Issue: I have a project in mysql and php. It works but the thing is that it will keep on refeshing when I select the name. Also, it is so cumbersome to keep on clicking the submit button. Is there anyway to solve my issue that whenever I select the member's name, the table will refresh itself ... thead>     <tbody>         <tr>             <?php echo $table; ?>         </tr>     </tbody> </table> 
asked Oct 31, 2020 RJ Lam 650 points
0 votes
1 answer 14 views
Question: I need to insert an image into the database. Is it possible that the image itself can be inserted into the database? Can you please show me how to do it?
asked Oct 31, 2020 RJ Lam 650 points
0 votes
1 answer 83 views
Problem Hello Kodlogs I need step by step instructions on how to use jquery ajax and php to fetch data from a mysql database that I have created. I have found certain code snippets but but I am looking for a comprehensive step-by-step example. Thanks in advance
asked Oct 29, 2020 hashq 1.1k points
0 votes
1 answer 10 views
My small project is about making an entry of a recipe. So it includes some special characters. So when I made an entry and save them to the database, it generates an error. But when I tried to insert it to my PHPAdmin, everything works well. Here is my recipe ... ½ tablespoons water 6 cups chicken broth 2 ¼ tablespoons soy sauce 1 tablespoon fish sauce"; Anyone who can show me how to save this?
asked Oct 28, 2020 RJ Lam 650 points
0 votes
1 answer 6 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, 2020 robin_gallo 420 points