Jump to content
  • 0
khenma09

Cant connect to MySQL server on 127.0.0.1

Question

Hi guys,

please help me!

cant connect to MySQL server on 127.0.0.1(see attached photos)

im using Visual Studio 2017 for compilation.

hercules updated.

kro Updated

 

Thanks in advance. 

 

B9A23A1A-7E0F-4615-B1FF-B21D2E96FF16.jpeg

F5CCBB54-E86D-4B9B-ACCE-6AAD068CF61B.jpeg

Edited by khenma09

Share this post


Link to post
Share on other sites

5 answers to this question

Recommended Posts

  • 0
17 hours ago, khenma09 said:

any easy guide to use this

simply follow the on-screen instructions when running the MariaDB windows installer. it should ask you to set a root password, and then you can install HeidiSQL and use it to connect to your local MariaDB server. Choose 127.0.0.1 as server, root as username, and the password you chose during installation as password. Once you are connected you can make a database for herc and add a new user with access to said database (to avoid using root). You can then login with that new user and choose the database you created and then import the .sql files.

Once the database setup is complete, update the sql_connection.conf file to tell Hercules what user and password it should use

Share this post


Link to post
Share on other sites
  • 0

install xampp control panel and when you instal it click for apache and SQL (then run both ofc)

go open admin for SQL

go add new database for your game (been so long but) then add your Logs to it

go to privileges  > add your new one with all the same info you used in the conf files in herc emu

 

 

should be fine after that, just like what daddy said but different program (sorry)

Edited by lllaaazzz

Share this post


Link to post
Share on other sites
  • 0

I have made a script to automatically set up the sql connection on new Hercules installations. The script does the following:

  • Installs Chocolatey (for easy installation and upgrading of MariaDB)
  • Installs the latest MariaDB version from Chocolatey
  • Resets the root password for MariaDB, and adds a Hercules user
  • Creates a Hercules database and imports the main.sql file
  • Updates the configuration files so that Hercules uses the new database

 

You can download the script here: https://gist.github.com/Helianthella/a2fa9915a069d086fa67fb98d1678585

  1. Save the file as mariadb.bat, at the root of your Hercules folder
  2. Right-click on the file and do "Run as administrator"
  3. Follow the on-screen prompts

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.