

You can run the following command to get a list of the databases on your server and the size in MB they are consuming: Mysql -h 127.0.0.1 -u db_user -p secretpassword db_name < import_file.sql How much space does my MySQL database take up? Mysql -h 127.0.0.1 -u db_user -p db_name < import_file.sql How do I import files using the MySQL command line Mysqldump -h 127.0.0.1 -u db_user -p secretpassword db_name > import_file.sql Mysqldump -h 127.0.0.1 -u db_user -p db_name > import_file.sql
Sequel pro database diagram password#
SET PASSWORD = PASSWORD('parrot') How do I export files using the MySQL command line Type Password at the Prompt Run the following query in the Custom Query tab: MySQL Reference How do I change my root password? The ~/Library folder is invisible in Lion, to open it choose "Go To Folder…" (cmd-shift-G) and type "~/Library/Preferences/" to open the preference folder.
Sequel pro database diagram mac osx#
The passwords are stored in the Mac OSX Keychain, which is stored here:įind more info about the Keychain here. The connections strings are stored in the following preference file: Where does Sequel Pro store the connections? If you press cmd + opt + R it will run either the currently selected text as a query OR the entire query in which you are currently positioned. If you press cmd + R it will run all the commands in the Query view. If you wish to use a default value, you should enter it without quotes in the Default column. To create an enum field follow the same procedure as you would for any other field, choose enum in the Type column of the Table Structure form, and then in the Length column enter the enum values as comma separated quoted strings. Core Features How do I create an enum field in a table? This will bring up a dialog box where you can choose what tables you would like to export. To export an SQL dump file of the table structure or contents you must first be connected a mysql host and have a database selected. Careful: Importing a *.sql file may overwrite your existing data! How do I save the table structure/table contents as an *.sql file Click the Table refresh button if needed. This will bring up a dialog box, select the file on your file system that you would like to import, then choose SQL from the "Format:" drop down menu and click "Open". To import an SQL dump file using the most recent version of Sequel Pro, connect to your MySQL host and select a database, then choose 'Import.' from the File menu. Working with Data How do I open an *.sql file for use with my database?

It says: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Frequently Asked Questions Getting Connected I am having trouble connecting to a database.
