Export data to a CSV file using MySQL command prompt
> SELECT tableColumnName1, tableColumnName2 INTO OUTFILE ‘/path/to/file/data.csv’ FIELDS TERMINATED BY ‘,’ ENCLOSED BY ‘”‘ LINES TERMINATED BY ‘n’ FROM tableName; Access Denied Even if you have been granted the SELECT privilege, you will still need to be granted the FILE privilege, or else access will …
Mysql Replication
>Follow the steps if you want to do Mysql Replication. Example:- MySQL Server A and Server B (1) Database should be same on both servers. (2) Create Slave User on each of the 2 servers:-USE mysql;INSERT INTO user(User, Passsword, Select_priv, Reload_priv, Super_priv, Repl_slave_priv) VALUES(‘USR’,’PASSWD’,’Y’,’Y’,’Y’,’Y’);FLUSH PRIVILEGES; …

