<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=MySQL_Administration_Server_Files_and_Scripts</id>
	<title>MySQL Administration Server Files and Scripts - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://training-course-material.com/index.php?action=history&amp;feed=atom&amp;title=MySQL_Administration_Server_Files_and_Scripts"/>
	<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=MySQL_Administration_Server_Files_and_Scripts&amp;action=history"/>
	<updated>2026-05-13T23:35:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://training-course-material.com/index.php?title=MySQL_Administration_Server_Files_and_Scripts&amp;diff=23971&amp;oldid=prev</id>
		<title>Cesar Chew at 18:15, 24 November 2014</title>
		<link rel="alternate" type="text/html" href="https://training-course-material.com/index.php?title=MySQL_Administration_Server_Files_and_Scripts&amp;diff=23971&amp;oldid=prev"/>
		<updated>2014-11-24T18:15:45Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Cat|MySQL|020}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;slideshow style=&amp;quot;nobleprog&amp;quot; headingmark=&amp;quot;⌘&amp;quot; incmark=&amp;quot;…&amp;quot; scaled=&amp;quot;true&amp;quot; font=&amp;quot;Trebuchet MS&amp;quot; &amp;gt;&lt;br /&gt;
;title: MySQL Administration Server Files and Scripts&lt;br /&gt;
;author: Bernard Szlachta (NobleProg Ltd)&lt;br /&gt;
&amp;lt;/slideshow&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== MySQL Server Files and Scripts ==&lt;br /&gt;
* MySQL Programs&lt;br /&gt;
* Server Programs&lt;br /&gt;
* Client Programs&lt;br /&gt;
* GUI and other tools&lt;br /&gt;
&lt;br /&gt;
== MySQL Programs ==&lt;br /&gt;
=== SERVER ===&lt;br /&gt;
* mysqld - the MySQL server&lt;br /&gt;
* mysqld_safe - a script which starts mysqld, recommended  of starting the server&lt;br /&gt;
** restarts the server when an error occur&lt;br /&gt;
** logs run-time and failure information &lt;br /&gt;
* mysqld_multi - script that can start or stop multiple servers installed on the system (different ports or sockets)&lt;br /&gt;
&lt;br /&gt;
=== CLIENT ===&lt;br /&gt;
* mysql - a command line client&lt;br /&gt;
* mysqladmin - administrative operations&lt;br /&gt;
** relading the grant tables&lt;br /&gt;
** creating/dropping database&lt;br /&gt;
** flushing tables to disk&lt;br /&gt;
** managing log files&lt;br /&gt;
** shutdown the database&lt;br /&gt;
* mysqlcheck - repairs, analyzes and optimizes tables&lt;br /&gt;
* mysqldump - dumps into SQL, text or XML files&lt;br /&gt;
&lt;br /&gt;
== MySQL Programs ==&lt;br /&gt;
TODO: update it to current version 5.6 or newer&lt;br /&gt;
&lt;br /&gt;
== Ways of starting a server ==&lt;br /&gt;
Windows or Unix service&lt;br /&gt;
* sudo /etc/init.d/mysql start&lt;br /&gt;
Mysqld_safe&lt;br /&gt;
* sudo mysqld_safe&lt;br /&gt;
Command line mysqld&lt;br /&gt;
* sudo mysqld&lt;br /&gt;
&lt;br /&gt;
== Stopping MySQL Server ==&lt;br /&gt;
Windows/Unix Service&lt;br /&gt;
* sudo /etc/init.d/mysql stop&lt;br /&gt;
* sudo service mysql stop&lt;br /&gt;
* net stop mysql  (Windows)&lt;br /&gt;
mysqladmin&lt;br /&gt;
* mysqladmin -u root -p shutdown&lt;br /&gt;
&lt;br /&gt;
== Changing Forgotten Password ==&lt;br /&gt;
 mysqld --skip-grant-tables&lt;br /&gt;
 # server starts without using the privilege system at all&lt;br /&gt;
 mysqladmin flush-privileges or &lt;br /&gt;
 mysqladmin reload or&lt;br /&gt;
 FLUSH PRIVILEGES&lt;br /&gt;
 # Change your password&lt;br /&gt;
 set password  for root@localhost = password(&amp;#039;asdfasdf&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
== Changing Forgotten Password ==&lt;br /&gt;
In order to prevent external connections accessing the databases you can change the port and the bind interface&lt;br /&gt;
 mysqld --bind-address=127.0.0.1 --port 333 --skip-grant-tables&lt;br /&gt;
You can connect to the database with the command below&lt;br /&gt;
 mysql -P 333 -h 127.0.0.1&lt;br /&gt;
&lt;br /&gt;
== Running Scripts ==&lt;br /&gt;
Execute a script&lt;br /&gt;
 mysql&amp;gt; source filename&lt;br /&gt;
 cat filename | mysql               (Unix only)&lt;br /&gt;
 type filename | mysql             (Windows only)&lt;br /&gt;
 mysql &amp;lt; filename&lt;br /&gt;
 GUI Tools&lt;br /&gt;
Running a SQL statement from shell&lt;br /&gt;
 echo &amp;quot;select * from EMP;&amp;quot; | mysql test;&lt;br /&gt;
Saving errors to a file&lt;br /&gt;
 mysql  --force &amp;lt; tables.sql  2&amp;gt; error.log&lt;br /&gt;
&lt;br /&gt;
== Using Client Tools ==&lt;br /&gt;
System Variables&lt;br /&gt;
 SET USER=your_name (Windows), in Unix the currently logged in user in the system&lt;br /&gt;
 MYSQL_TCP_PORT=3306; export MYSQL_TCP_PORT&lt;br /&gt;
 mysql –u user –ppassword –h host database&lt;br /&gt;
Config file (my.ini or /etc/mysql/my.cnf)&lt;br /&gt;
 [client]&lt;br /&gt;
 host=host_name&lt;br /&gt;
 user=user_name&lt;br /&gt;
 password=your_pass&lt;/div&gt;</summary>
		<author><name>Cesar Chew</name></author>
	</entry>
</feed>