You can directly update password using the following method to update or change password for user vivek:
1) Login to mysql server, type the following command at shell prompt:
$ mysql -u root -p
You can directly update password using the following method to update or change password for user vivek:
1) Login to mysql server, type the following command at shell prompt:
$ mysql -u root -p
To enable mySQL remote connection we need to follow these steps:
If you ever loose your mysql root password (remember is not the same as the system root password) you can recover it following this steps:
The following AGI retrieves asterisk extensions from Asterisk database in MySQL and displays them as verbose.
# mysqldump -u root -ppassword --opt > alldatabases.sql
# [mysql dir]/bin/mysqldump -u username -ppassword --databases databasename >/tmp/databasename.sql
# mysqldump -c -u username -password databasename tablename > /tablename.sql
# mysql -u username -password databasename < /tmp/databasename.sql
Load a CSV file into a table.
mysql> LOAD DATA INFILE '/tmp/filename.csv' replace INTO TABLE [table name] FIELDS TERMINATED BY ',' LINES TERMINATED BY 'n' (field1,field2,field3);