Because the MySQL database itself does not have the disk quota feature, we can limit the quota tool that comes with Linux for mysql disk quota.
1, first need to automatically mount a partition for /home, and set to quota disk format. Let's take the user foo as an example and set the disk quota of foo. Please refer to the Linux Quota Basic Tutorial for details on how to set it up.
2, create a dbs directory to store the database in the foo home directory, and set the ownership of this directory to mysql:foo, the permissions are 3755.
mkdir /home/foo/dbs
chown mysql:foo /home/foo/dbs
chmod 3755 /home/foo/dbs
3 Now move all foo database files in /var/lib/mysql to the /home/foo/dbs directory.
mkdir /root/backup
cp -avr /var/lib/mysql/* root/backup
mv /var/lib/mysql/database-name /home /foo/dbs/
chown -Rf mysql:foo /home/foo
chmod -Rf 3755 /home/foo
ln -s /var/lib/mysql /database-name /home/foo/dbs/database-name -v
Restart the mysql database server:
etc/init.d/mysqld restart
Whether you are a Linux command line newbie or a veteran, these tips can help you improve, save time
For systems on the Internet, it is important to be clear about the situation: the network is not se
Before downloading the files on the Linux machine via FTP, upload it after the Windows editing, so
Its still a process of generating vmlinux from the compiled link. It is made up of a bunch of .o fi
CentOS installation GD library support
How to compile and install OPENSSL and APACHE
What if Linux forgets the password?
Modify IP, DNS, and routing configuration under Linux operating system
Linux (centos) SSH installation and setup - macos remote connection
The linux packet capture command
Linux software installation introduction
Compile command for c mysql program under Linux
About gdb command knowledge in Linux system
Gadgets that are easily managed by Windows system processes
The details are also important. Small changes in the Windows 8 pre-test version
WinXP desktop icon flower screen color change solution
Win10 Anniversary Update Latest Cumulative Update Patch KB3199209 Released
Win 7 installation and hardware driver instructions
Where is the Win10 offline map? Win10 download offline map method
WinXP common system service introduction (7)
System Tips: How to turn on the four channels under Windows 7