Skip to main content
add acces to dir.
Source Link
Archemar
  • 32.3k
  • 18
  • 75
  • 107

usual way to give read acces to a database is

 mysql -u root databaseName # connect to database in mysql
 grant connect to whoever ; # without password
 grant connect to whoever identified by clever ; # with a passwd
 grant connect to whoever@localhost ; # you must be logged whoever on localhost

see also

Even if you want your user to copy the database, copying sould be done through :

mysqldump database | mysql -u whoever targetdatabase

Access

To acces file from client script

  • /var/lib/mysql/databaseName sould be rwxrwxr-x,
  • /var/lib/mysql/databaseName:* sould be rwxrwxr-x.

usual way to give read acces to a database is

 mysql -u root databaseName # connect to database in mysql
 grant connect to whoever ; # without password
 grant connect to whoever identified by clever ; # with a passwd
 grant connect to whoever@localhost ; # you must be logged whoever on localhost

see also

Even if you want your user to copy the database, copying sould be done through :

mysqldump database | mysql -u whoever targetdatabase

usual way to give read acces to a database is

 mysql -u root databaseName # connect to database in mysql
 grant connect to whoever ; # without password
 grant connect to whoever identified by clever ; # with a passwd
 grant connect to whoever@localhost ; # you must be logged whoever on localhost

see also

Even if you want your user to copy the database, copying sould be done through :

mysqldump database | mysql -u whoever targetdatabase

Access

To acces file from client script

  • /var/lib/mysql/databaseName sould be rwxrwxr-x,
  • /var/lib/mysql/databaseName:* sould be rwxrwxr-x.
Source Link
Archemar
  • 32.3k
  • 18
  • 75
  • 107

usual way to give read acces to a database is

 mysql -u root databaseName # connect to database in mysql
 grant connect to whoever ; # without password
 grant connect to whoever identified by clever ; # with a passwd
 grant connect to whoever@localhost ; # you must be logged whoever on localhost

see also

Even if you want your user to copy the database, copying sould be done through :

mysqldump database | mysql -u whoever targetdatabase