Hi, Can any one guide me. How can I connect my Wordpress web server to be connected to aiven free MySQL host.
Hey there, sure thing!
Once you download WordPress and start the installer, youâll get to this step which asks for your database credentials:
To find those from the Aiven console, go to your Services list, and click on your MySQL database to get to its Overview page, which will look something like this:
You can use the little copy icons on the side to copy/pasta your Database Name, User, Password, and Host and Port from Aiven to WordPress, like so:
NOTE: Since the WordPress installer doesnât have âDatabase Portâ as a separate field, you need to âsmooshâ hostname + port together with a â:â between, otherwise youâll get an error about being unable to connect to the database.
Youâll know it works when it calls you âSparky.â
Alternately, if you already have a wp-config.php file, you can accomplish the same thing by editing the DB_
constants:
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define( 'DB_NAME', 'defaultdb' );
/** Database username */
define( 'DB_USER', 'avnadmin' );
/** Database password */
define( 'DB_PASSWORD', '<your password here>' );
/** Database hostname */
define( 'DB_HOST', '<your host name here>.aivencloud.com:24282' );
A post was split to a new topic: [ERROR 2002 (HY000): Canât connect to MySQL server on â**********.aivencloud.comâ (115)]
i have the same problem but my code is in python can you give me the code in python
Hey @Shubham1, letâs deal with that issue over here: I can't connect my website with aiven mysql server (python)