Hello fellas,
I know there are many topic on this subject, but I have found out no answer to my problems.
So here it goes.
I have made my new project on wampserver on my local machine, and started building the site.
Followed all the steps, and have made my text book folder "system" in "www" directory and my database test_db.
Now, after some time, I tried to login to my wampserver and I got the famous "Error establishing a database connection"
Ok, I have had this problem once, and I fixed it, it was a simple path error, so no worries there.
Well now, I have a major shitstorm as my whole project is in jeopardy, as none of the solutions works.
Here is my WP-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'test_db');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
I can connect to my myphpadmin and see that my database is ok. My user is root and pass is blank.
In wp_options my paths looks good.
I tried to add to my wp-admin.php "define('WP_ALLOW_REPAIR', true);" but that does not work anymore. The same error appears.
Looked in hosts files for possible errors and nothign wrong. Pingled localhost and got a reply.
Here it gets funny.
I tried to create new database, and copy my wordpress dircetory to my new folder/database, but after inital making of new database, I cant install wordpress as it wont connect to my new database, which is empty from the moment iI made it. Which should be ok.
Im stuck here folks, and need assistance. Is there a captain here to help me out.
Thank you
Marko
I know there are many topic on this subject, but I have found out no answer to my problems.
So here it goes.
I have made my new project on wampserver on my local machine, and started building the site.
Followed all the steps, and have made my text book folder "system" in "www" directory and my database test_db.
Now, after some time, I tried to login to my wampserver and I got the famous "Error establishing a database connection"
Ok, I have had this problem once, and I fixed it, it was a simple path error, so no worries there.
Well now, I have a major shitstorm as my whole project is in jeopardy, as none of the solutions works.
Here is my WP-config.php
// ** MySQL settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', 'test_db');
/** MySQL database username */
define('DB_USER', 'root');
/** MySQL database password */
define('DB_PASSWORD', '');
/** MySQL hostname */
define('DB_HOST', 'localhost');
/** Database Charset to use in creating database tables. */
define('DB_CHARSET', 'utf8mb4');
/** The Database Collate type. Don't change this if in doubt. */
define('DB_COLLATE', '');
I can connect to my myphpadmin and see that my database is ok. My user is root and pass is blank.
In wp_options my paths looks good.
I tried to add to my wp-admin.php "define('WP_ALLOW_REPAIR', true);" but that does not work anymore. The same error appears.
Looked in hosts files for possible errors and nothign wrong. Pingled localhost and got a reply.
Here it gets funny.
I tried to create new database, and copy my wordpress dircetory to my new folder/database, but after inital making of new database, I cant install wordpress as it wont connect to my new database, which is empty from the moment iI made it. Which should be ok.
Im stuck here folks, and need assistance. Is there a captain here to help me out.
Thank you
Marko