Difference between revisions of "Command line cheat sheet"

From TempusServa wiki
Jump to navigation Jump to search
old>Admin
old>Admin
Line 9: Line 9:
<blockquote>
<blockquote>
mysql -uroot -pPW1234 --databases tslive tstest tsbase > dump.sql
mysql -uroot -pPW1234 --databases tslive tstest tsbase > dump.sql
</blockquote>
== Start and stop linux ==
Start services
<blockquote>
sudo service mysqld start
sudo /etc/init.d/tomcat6 start
</blockquote>
Stop services
<blockquote>
sudo /etc/init.d/tomcat6 stop
sudo service mysqld stop
</blockquote>
== Tomcat linux ==
Edit connection string
<blockquote>
sudo nano /usr/share/tomcat/conf/Catalina/localhost/TempusServa.xml
</blockquote>
Edit server settings
<blockquote>
sudo nano /usr/share/tomcat/conf/server.xml
</blockquote>
</blockquote>

Revision as of 00:33, 22 February 2013

MySQL commands

Import data from a SQL dump file to a specific database:

mysql -uroot -pPW1234 tslive < dumpLive.sql

Export data from a SQL dump file to a specific database:

mysql -uroot -pPW1234 --databases tslive tstest tsbase > dump.sql

Start and stop linux

Start services

sudo service mysqld start sudo /etc/init.d/tomcat6 start

Stop services

sudo /etc/init.d/tomcat6 stop sudo service mysqld stop

Tomcat linux

Edit connection string

sudo nano /usr/share/tomcat/conf/Catalina/localhost/TempusServa.xml

Edit server settings

sudo nano /usr/share/tomcat/conf/server.xml