MySQL, or My Structured Query Language, is an open-source database management system where data or information for your website is stored. To access data from MySQL, your system needs a computer language such as Java, Perl, Python, and PHP.
MySQL's purpose is to act as your web database, it consists of tables, rows, and columns of collective data that will be used to display information upon query on your online website from products information, or to an entire inventory. This article will guide you on how to create MySQL Database and User via Plesk.
How to Create a MySQL Database and User
If you are setting up a web-based application, such as a bulletin board, a blog, or an online shop, you will need to set up a MySQL Database to store its web files. Additionally, you will also need to create a Database User to gain access to the database you created, which can read, write, or modify data in that database. You can create both of these within your Plesk panel for Windows Hosting.
To create a database and user in Plesk, follow the steps below:
- Access your Hosting Manager.
- Click Databases from the left-side menu.
- Click the [ + ] Database button at the top of the page.
- Enter a Database name in the field provided.
- From the Database server drop-down list, select the server that says default for MySQL.
- From the Related site drop-down list, select the website whose files you wish to save in this database.
Or, select No related sites if you're not ready to connect it to a site yet.
Note: To assign a website later, go back to Databases from the left-side menu and click the Assign this database to a site link beside the Database name that you wish to manage.
- Under Users, select Create a database user.
- Enter a Database user name in the field provided, assign a New password for this user, and re-enter the password in the Confirm password field.
- Select or deselect User has access to all databases within the selected subscription, according to the user privilege you would like to grant this user.
- Under Access control, select or deselect the permitted actions you would like to further grant the user within the database.
- Click OK to save.
You now know how to create a MySQL database and user in Plesk.
Note: When you create a database and/or user, the system will automatically use your Plesk panel username as a prefix, e.g., username_database01 or username_user01.
To further manage the user privileges assigned to the Database user you just created, go back to Databases from the left-side menu, click User Management from the right-side menu, and click on the Database user name that you wish to manage. You will be able to manage the user's Role, Data Access privileges, and Structure Access privileges from here. If you have any questions, or if you need any assistance, please let us know. We'd love to help!
Fantastic...Thank you for your feedback =)
Sorry... Please submit a support ticket or try another search.