PostgreSQL DESCRIBE TABLE Equivalent
In MySQL I always use “DESCRIBE TABLE” or “SHOW CREATE TABLE” to show the schema of a table but I always forget how to do this in PostgreSQL. The PostgreSQL equivalent is:
|
1 |
\d+ tablename |
In MySQL I always use “DESCRIBE TABLE” or “SHOW CREATE TABLE” to show the schema of a table but I always forget how to do this in PostgreSQL. The PostgreSQL equivalent is:
|
1 |
\d+ tablename |
By default, MySQL sets the minimum word length in full text search indexes to 4 characters. Here are the steps to lower this limit to 3. Edit /etc/my.cnf and add
|
1 |
ft_min_word_len = 3 |
Restart MySQL to apply the change. Get a list
By default MySQL 5.5 and prior store all InnoDB tables in a single table space or file. Improved performance and managability can be accheived by using the innodb_file_per_table option to cause MySQL to use a separate file for each table.
Here’s the command to dump the triggers and stored procedures for a database:
|
1 |
mysqldump --routines --no-create-info --no-data --no-create-db --skip-opt [dbname] |
By default is seems the soft and hard open files limits on MariaDB in CentOS 7 are 1024 and 4096 respectfully. You can see these limits by first getting the process ID:
|
1 |
cat /var/run/mariadb/mariadb.pid |
And then looking at the limits in
Reliable Penguin provides managed web hosting, systems administration, website and server migrations, and expert consulting.
Submit the form—or for immediate service call 866-649-7984.