![]() ![]() 192.168.0.100 is the IP address of the remote server.In that case, you can create a new MySQL user with the following command: mysql> CREATE USER IDENTIFIED BY 'userpassword' You will need to replace the localhost with the remote server IP address if you want to connect the MySQL from the remote server. localhost is a host from where you want to connect to MySQL.userpassword is the password of the MySQL user.username is the name of the MySQL user you want to create.Now, create a new MySQL user with the following command: mysql> CREATE USER IDENTIFIED BY 'userpassword' Type '\c' to clear the current input statement. Other names may be trademarks of their respective Oracle is a registered trademark of Oracle Corporation and/or itsĪffiliates. Once you are connected to the MySQL shell, you should see the following output: Welcome to the MySQL monitor. You will be asked to provide your MySQL root password. You can connect it using the following command: mysql -u root -p You can do this by running the following commands: apt-get update -yĪpt-get upgrade -y Create a New MySQL Userįirst, you will need to connect to the MySQL shell using the MySQL root user. Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all OS packages installed on the server are up to date. You will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Log in to the Server & Update the Server OS Packagesįirst, log in to your Debian 10 server via SSH as the root user: ssh _Address -p Port_number Access to the root user account (or access to an admin account with root privileges).A Linux VPS with MySQL server installed.In this post, we will show you how to create a MySQL user and grant specific permissions Prerequisites In that case, it is essential for your to know how to grant specific privileges to the MySQL user account. When you hire a new developer to manage MySQL databases then you may need to grant specific permission to manage those databases such as deleting or modifying the information. ![]() It provides a lot of management options like creating and managing a user with specific permissions to databases and tables. MySQL is one of the most popular and open-source relational database management systems around the world. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |