Creating A New SQL User
![Image](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq9Uzolh9N7nPT1t4oNDkT4qFSXujxDNcLTQ63FFRGZCgL63DxS1CRPBuv5xs7VS4LQC0XEIh1-7_ZK4etbmTlsyHkQzyEFhPwDAJ7eltcZWoNJ_8Wl6ONx2_ZGC4E4RW-kvnQi00XcNls/s0/createusersql.png)
In case you haven't already noticed MySQL tends to allow some pretty insecure permissions by default, allowing root access from any computer. This is a big problem, especially if you have port forwarding configured on your router to your MySQL instance. However you can easily create new users using any management interface, so we'll do it with HeidiSQL 1) Launch HeidiSQL and sign in as root. 2) Select Tools>User Manager. First of all, we'll remove root access for remote hosts. There will be several accounts listed for root, from various locations. Select the root account that has just a % sign in the host column. This allows root access from any location, including on the internet and isn't recommended. On the right hand side, select the drop down and pick the local network that matches your LAN IP range (e.g. 192.168.%) This makes sure that when you're on your local network, you can still log in as root. Click save. Next we'll add a new r