Hi!
How can I create a mysql database for a regular user placed at a given dir?
I am using kubuntu 20.04.
Thanks.
Paulo da Silva wrote:
Hi!
How can I create a mysql database for a regular user placed at a given dir? >>
I am using kubuntu 20.04.
Thanks.
I believe you can make a user config
~/.my.cnf
then set
datadir = /wherever/you/want
Hi!
How can I create a mysql database for a regular user placed at a given dir?
Às 22:42 de 04/02/22, Jonathan N. Little escreveu:
Paulo da Silva wrote:But that changes the data dir for all dbs. It would break the dbs from
Hi!
How can I create a mysql database for a regular user placed at a
given dir?
I am using kubuntu 20.04.
Thanks.
I believe you can make a user config
~/.my.cnf
then set
datadir = /wherever/you/want
the preinstalled services that came with the distro.
I have searched the net and it seems that it is not possible. Only with
a VM or docker or anything alike.
Thanks anyway.
Paulo da Silva wrote:
Hi!
How can I create a mysql database for a regular user placed at a given dir?
You don't, at least not "specifically".
What're you actually trying to accomplish? Giving them limited access
into the database schema(s) or something?
Paulo da Silva wrote:
Às 22:42 de 04/02/22, Jonathan N. Little escreveu:
Paulo da Silva wrote:But that changes the data dir for all dbs. It would break the dbs from
Hi!
How can I create a mysql database for a regular user placed at a
given dir?
I am using kubuntu 20.04.
Thanks.
I believe you can make a user config
~/.my.cnf
then set
datadir = /wherever/you/want
the preinstalled services that came with the distro.
I have searched the net and it seems that it is not possible. Only with
a VM or docker or anything alike.
Thanks anyway.
Why would you want to in the first place? As a user you don't actually interact directly with the database files *frm *myd & *.myi. You
interact via the service and you can give access to a specific database
with permissions defined for your user in the mysql database. If is for something like backups then grant permissions SELECT, LOCK TABLES, SHOW
VIEW, RELOAD for that user for that database...
Às 02:57 de 05/02/22, Dan Purgert escreveu:
Paulo da Silva wrote:
Hi!
How can I create a mysql database for a regular user placed at a
given dir?
You don't, at least not "specifically".
What're you actually trying to accomplish? Giving them limited access
into the database schema(s) or something?
Just create a big table to play with.
I am developing a python script that needs a sql database. So far I'm
using sqlite3 but in future I need to make it work with other sql dbs.
It needs to have more than 2 billions rows at least to check for
performance algorithms, for ex.
... and I don't want to mess up with the preinstalled dbs that came with
the distro.
Paulo da Silva wrote:
Às 02:57 de 05/02/22, Dan Purgert escreveu:
Paulo da Silva wrote:
Hi!
How can I create a mysql database for a regular user placed at a
given dir?
You don't, at least not "specifically".
What're you actually trying to accomplish? Giving them limited access
into the database schema(s) or something?
Just create a big table to play with.
I am developing a python script that needs a sql database. So far I'm
using sqlite3 but in future I need to make it work with other sql dbs.
It needs to have more than 2 billions rows at least to check for
performance algorithms, for ex.
... and I don't want to mess up with the preinstalled dbs that came with
the distro.
What preinstalled dbs? The only one preinstalled in the mysql which
holds the server level settings. Create your db and it is stored in its
own db files... if you are not accessing that db then it has no impact
on the performance any others on the system.
- Is there a way to run a new instance, of mariadb for ex.? How?
- May I install mysql after mariadb? I don't think so. Installed mariadb seems to share some stuff with mysql.
Hi!
How can I create a mysql database for a regular user placed at a given dir?
I am using kubuntu 20.04.
Thanks.
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 147:36:03 |
| Calls: | 12,091 |
| Calls today: | 4 |
| Files: | 15,000 |
| Messages: | 6,517,532 |