Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql password error create datbase

use mysql;
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'username'@'localhost';
flush privileges;
Comment

mysql password error create datbase

use mysql;


DROP USER 'jeffrey'@'localhost';
# FOR DELETING USER #error 1396

DROP DATABASE databasename
# TO DELETE DATABASE #error 1007



CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';
GRANT ALL ON *.* TO 'username'@'localhost';
flush privileges;

CREATE USER 'wordpressuser'@'localhost' IDENTIFIED BY 'password';
# Remember the quote in used is not around the @ symbol, and it is not ‘ ’ 
#  but ' '. 
#  And the first thing to do is to provide 
#  the user with access to the information this wordpressuser will need.

GRANT ALL PRIVILEGES ON * . * TO 'wordpressuser'@'localhost';

# The asterisks in this command refer to the database and table (respectively)
# that they can access—this specific command allows to the user to read, edit, execute and perform all tasks across all the databases and tables.

# Once you have finalized the permissions that you want to set up for 
#  your new wordpressuser, always be sure to reload all the privileges.


FLUSH PRIVILEGES;
Comment

PREVIOUS NEXT
Code Example
Sql :: delete a view sql 
Sql :: mysql delete last row 
Sql :: sql missing records from another table 
Sql :: what is meant by trigger in dbms 
Sql :: oracle list invalid password ORA-01017 
Sql :: select item.* as json mysql 
Sql :: sqlite print all column names 
Sql :: set statiscis on in sql server 
Sql :: postgres remove foreign key constraint 
Sql :: sqlite create integer column with limit 
Sql :: sql command to find foreign key references 
Sql :: postgresql get current user name 
Sql :: error code 1292 mysql workbench 
Sql :: postgres check blocking 
Sql :: sql syntax find few columns 
Sql :: python mysql check if database exists 
Sql :: get a list of table names and field names from SQL 
Sql :: my sql version 
Sql :: get ddl materialized view oracle 
Sql :: async await mysql nodejs 
Sql :: insert into table from another table mysql 
Sql :: Failed to connect to localhost:1433 - self signed certificate 
Sql :: sql sample tables with data 
Sql :: copy one column data to another in sql 
Sql :: get last record in sql 
Sql :: having vs where sql 
Sql :: backup mysql data only 
Sql :: create table sql 
Sql :: oracle alter tablespace add datafile autoextend max size 
Sql :: sql ends with string 
ADD CONTENT
Topic
Content
Source link
Name
6+9 =