# MySQL Database for server?

**URL:** <https://community.hexane.co/t/mysql-database-for-server/237>\
**Category:** Garry's Mod\
**Created:** [2 November 2022 19:30 UTC](https://community.hexane.co/t/mysql-database-for-server/237 "2022-11-02T19:30:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Satan](https://community.hexane.co/user_avatar/community.hexane.co/satan/32/360_2.png) [@Satan](https://community.hexane.co/u/Satan)\
**Post date:** [2 November 2022 19:30 UTC](https://community.hexane.co/t/mysql-database-for-server/237/1 "2022-11-02T19:30:29Z")

</div>

Hey, I have been stuck for days, how do I get MySQL database working for my server I’m really not sure what I’m doing here.

I have one of your Gmod servers and website hosting what has the MySQL on it, how do I like it with the server?

---

<div class="post-metadata">

**Author:** ![Hyro](https://community.hexane.co/user_avatar/community.hexane.co/hyro/32/8_2.png) [@Hyro](https://community.hexane.co/u/Hyro)\
**Post date:** [2 November 2022 21:27 UTC](https://community.hexane.co/t/mysql-database-for-server/237/2 "2022-11-02T21:27:52Z")

</div>

On the web hosting control panel, you can create the user and database via the MySQL Wizard. Then, in your lua MySQL config, input the details you created alongside these:

Host: `mysql.hexaneweb.net`  
Port: `3306`

---

<div class="post-metadata">

**Author:** ![Satan](https://community.hexane.co/user_avatar/community.hexane.co/satan/32/360_2.png) [@Satan](https://community.hexane.co/u/Satan)\
**Post date:** [2 November 2022 22:19 UTC](https://community.hexane.co/t/mysql-database-for-server/237/3 "2022-11-02T22:19:12Z")

</div>

It keeps coming up with this.

“gamemodes/darkrp/gamemode/libraries/mysqlite/mysqlite.lua:372: Connection failed! Access denied for user ‘satan’@‘45.88.230.144’ (using password: YES)  
Trying again in 5 seconds.”

---

<div class="post-metadata">

**Author:** ![deadmonstor](https://community.hexane.co/user_avatar/community.hexane.co/deadmonstor/32/106_2.png) [@deadmonstor](https://community.hexane.co/u/deadmonstor)\
**Post date:** [2 November 2022 22:20 UTC](https://community.hexane.co/t/mysql-database-for-server/237/4 "2022-11-02T22:20:23Z")

</div>

Make sure you have allowed the IP to connect to the database, under “Remote MySQL” on CPanel, should need to add the IP “45.88.230.144” like in the error

---

<div class="post-metadata">

**Author:** ![Satan](https://community.hexane.co/user_avatar/community.hexane.co/satan/32/360_2.png) [@Satan](https://community.hexane.co/u/Satan)\
**Post date:** [4 November 2022 20:34 UTC](https://community.hexane.co/t/mysql-database-for-server/237/5 "2022-11-04T20:34:29Z")

</div>

Right sorted it took a bit of time, but I’m a dummy it has been resolved, I was not putting the username and database name down right silly me!

thank you for your help 🙂

---

<div class="post-metadata">

**Author:** ![Hyro](https://community.hexane.co/user_avatar/community.hexane.co/hyro/32/8_2.png) [@Hyro](https://community.hexane.co/u/Hyro)\
**Post date:** [10 November 2022 23:38 UTC](https://community.hexane.co/t/mysql-database-for-server/237/6 "2022-11-10T23:38:43Z")

</div>


