mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 15:20:13 +01:00
Updated MySQL tips (markdown)
parent
cdb9bb4185
commit
2daac77d38
1 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ This tips were prepared for [[Install Tracks 2.5 on Ubuntu 20.10]]
|
|||
<p>
|
||||
<br/>
|
||||
</p>
|
||||
<p>To enable or disable the automatic start of MySQL service when you boot your machine use</p>
|
||||
<p>To enable or disable the automatic start of MySQL service when you boot your machine use</p>tmp/partkeepr
|
||||
<blockquote>
|
||||
<p>>systemctl enable mysql</p>
|
||||
<p>>systemctl disable mysql</p>
|
||||
|
|
@ -69,7 +69,7 @@ This tips were prepared for [[Install Tracks 2.5 on Ubuntu 20.10]]
|
|||
</ul>
|
||||
<h3>Import Export the content of the database</h3>
|
||||
<blockquote>
|
||||
<p>>mysqldump -u <strong>user_name</strong> -p <strong>db_name</strong> > /tmp/partkeepr.sql</p>
|
||||
<p>>mysqldump -u <strong>user_name</strong> -p <strong>db_name</strong> > /path/exported_data.sql</p>
|
||||
</blockquote>
|
||||
<p>set <strong>user_name</strong> and <strong>db_name</strong> accordingly.</p>
|
||||
<p>e.g.</p>
|
||||
|
|
@ -88,7 +88,7 @@ This tips were prepared for [[Install Tracks 2.5 on Ubuntu 20.10]]
|
|||
<p>Sometimes it is required to drop all the table before the import, you need to check for your case.</p>
|
||||
<p>at the command line do</p>
|
||||
<blockquote>
|
||||
<p>>mysql -u <strong>user_name</strong> -p <strong>db_name</strong> < /tmp/partkeepr.sql</p>
|
||||
<p>>mysql -u <strong>user_name</strong> -p <strong>db_name</strong> < /path/exported_data.sql</p>
|
||||
</blockquote>
|
||||
<p>e.g.</p>
|
||||
<blockquote>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue