How to Access Web Disk in cPanel?
The web disk account allows you to easily navigate, upload and download files between the…
We’ll show you how to make a CNCC user and a CNCC database in this article.
$ CREATE USER '<CNCC User Name>'@'%' IDENTIFIED BY '<CNCC Password>';$ show databases; to check if the database exists$ CREATE DATABASE IF NOT EXISTS <CNCC Database> CHARACTER SET utf8; for Database creation.$ GRANT SELECT,INSERT,CREATE,ALTER,DROP,LOCK TABLES,CREATE TEMPORARY TABLES, DELETE,UPDATE,EXECUTE ON <CNCC Database>.* TO '<CNCC User Name>'@'%';To show how to create a cncc user, a cnccdb, and provide rights to a cncc user, consider the following scenario:
# Login to MySql prompt:-
$ mysql -u root -p
Check user already exists or not
$ SELECT User FROM mysql.user;
# In case, user already exists, move to next step. Command to create new user is as mentioned below:-
$ CREATE USER 'cnccusr'@'%' IDENTIFIED BY 'cnccpasswd'
# Command to check if database exists:-
$ show databases;
# Check if required database is already in list. If MySql has cnccdb already created as per 1.0.0 release creation, drop it.
$ DROP DATABASE cnccdb;
# Database creation for CNCC
$ CREATE DATABASE IF NOT EXISTS cnccdb CHARACTERSET utf8;
#Granting permission to user:-
$ GRANT SELECT, INSERT, CREATE, ALTER, DROP, LOCK TABLES, CREATE TEMPORARY TABLES, DELETE, UPDATE, EXECUTE ON cnccdb .* TO'cnccusr'@'%';
We genuinely hope you now have a better understanding of Create a MySQL database and a username. If you continue to have problems with the method outlined above, please contact the bodHOST Team for assistance. 24×7
Explore more hosting insights, tips and industry updates.
The web disk account allows you to easily navigate, upload and download files between the…
Q. What is a Web Hosting?Ans. In simple word we can explain it like this.…
A test for MySQL database connectivity is done using the PHP script mentioned below. It…