亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? mysql-admin.html

?? complete details about using SQL applications
?? HTML
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><title>Basic MySQL Administration</title>

<link rel="stylesheet" href="mysql-admin_files/home.css" type="text/css">
<link rel="stylesheet" href="mysql-admin_files/webpub.css" type="text/css"></head>




<body bgcolor="#ffffff">






















































































 












<a href="http://www.washington.edu/"><img id="toplogo" src="mysql-admin_files/UWlogo150p.gif" alt="University of Washington" border="0"></a>

<div id="toolbar">
    &nbsp;<span class="l1text"><a href="http://www.washington.edu/home/search.html">Search</a> |
    <a href="http://www.washington.edu/home/directories.html">Directories</a> |
    <a href="http://www.lib.washington.edu/research/">Reference
    Tools</a></span></div>


<!--Section Banner Table -->
 
 
  
  
 
<div class="bannerwrapper">
  <div id="topbanner"><img src="mysql-admin_files/rib0.gif" alt="" height="16" width="6"></div>
</div>

<div id="crumbs"><span class="l1text"><a href="http://www.washington.edu/">UW Home</a> &gt; <a href="http://www.washington.edu/uwin/">UWIN</a> &gt; <a href="http://www.washington.edu/computing/">Computing and Networking</a> &gt; <a href="http://www.washington.edu/computing/web/">Web</a> &gt; <a href="http://www.washington.edu/computing/web/publishing/">Web Publishing</a> &gt; <a href="http://www.washington.edu/computing/web/publishing/mysql.html">Using MySQL</a></span>&nbsp;</div><div class="forceclear"></div>







<table style="table-layout: fixed;" align="right" bgcolor="#ffffcc" border="1" cellpadding="5" cellspacing="0">
<tbody><tr>
<td width="120">
<p>This article applies to the following UW Web servers:</p>
<center>
<a href="http://faculty.washington.edu/">faculty</a><br>
<a href="http://staff.washington.edu/">staff</a><br>
<a href="http://students.washington.edu/">students</a><br>
<a href="http://courses.washington.edu/">courses</a><br>
<a href="http://depts.washington.edu/">depts</a><br>
</center>
</td>
</tr>
</tbody></table>


<h1>Basic MySQL Administration</h1>

<h4>Summary</h4> 

<p>This article covers the basics of MySQL administration. You will
learn how to stop and restart MySQL safely and how to configure and
administer your database server.</p>

<p><b>Note:</b>  This article assumes that you have followed the instructions for <a href="http://www.washington.edu/computing/web/publishing/mysql-install.html">installing and starting MySQL</a> on the UW servers.</p>

<p><i>Included on this page:</i></p>

<ul>
<li><a href="#1">Determining Whether Your MySQL Server Is Running</a>
</li><li><a href="#2">Stopping and Restarting Your MySQL Server</a>
</li><li><a href="#3">Using cron to start Your MySQL Server Automatically After a System Restart</a>
</li><li><a href="#4">Logging Client Interaction With Your MySQL Server</a>
</li><li><a href="#5">References</a>
</li></ul>

<h4><a name="1">Determining Whether Your MySQL Server Is Running</a></h4>

<p>In order to use or administer MySQL, your MySQL server needs to be
running. To verify that this is the case, follow these instructions:</p>

<ol>

<li>	<p>Log in to your Homer or Dante account with <a href="http://www.washington.edu/computing/software/uwick/teraterm">Tera Term</a> 
or another terminal emulator.</p>

</li><li>	<p>Press the O key for Other.</p>

</li><li>	<p>Press the W key to drop into the <a href="http://www.washington.edu/computing/web/publishing/environs.html">Web development environment</a> and <tt>cd</tt> into your <tt>mysql</tt> directory:

		</p><p><span class="code">cd mysql</span></p>

		<p><b>Note:</b>  Stay in your <tt>mysql</tt> directory; at no point in this installation should you <tt>cd</tt> to <tt>public_html</tt> or <tt>student_html</tt>.  Doing so will cause errors if you attempt to stop or restart MySQL.</p>

</li><li>	<p>Maximize the size of your terminal window, and type the following at the command line:</p>

		<p><span class="code">ps -ef | grep mysql | grep <i>accountname</i></span></p><p>

		</p><p>Substitute your UW NetID or the account name for <i>accountname</i>.</p>

		<p>If MySQL is running, you will see output similar to the following:</p>

		<p></p><table class="code">
			<tbody><tr><td>
				<i>accountname</i> 66060 53816   4 11:15:59 pts/44  0:00 grep mysql<br>
				<i>accountname</i> 68046 53816   0 11:15:46 pts/44  0:00 sh ./bin/safe_mysqld<br>
				<i>accountname</i> 79940 68046   0 11:15:46 pts/44  0:00
				/rc34/d82/<i>accountname</i>/mysql/bin/mysqld
				--defaults-extra-file=/rc34/d82/<i>accountname</i>/mysql/data/my.cnf
				--basedir=/rc34/d82/<i>accountname</i>/mysql
				--datadir=/rc34/d82/<i>accountname</i>/mysql/data
				--pid-file=/rc34/d82/<i>accountname</i>/mysql/data/ovid01.pid
			</td></tr>
		</tbody></table>

	<p>Specifically, you will see that a process called <tt>"./bin/safe_mysqld"</tt> is running.  
	This is the command you typed to start your MySQL server.
	If MySQL is not running, you will only see a reponse similar to this:</p>

	<p><span class="code"><i>accountname</i> 75994 53816   2 11:11:32 pts/44  0:00 grep mysql</span></p>

</li></ol>

<h4><a name="2">Stopping and Restarting Your MySQL Server</a></h4>

<ul>
<li>   <p> To stop your MySQL server, make sure you are in your <tt>mysql</tt> directory, and then type </p>

		<p><span class="code">./bin/mysqladmin -u root -p shutdown</span></p>

		<p> This lets the <tt>mysqladmin</tt> utility know that you want to shut down MySQL running as user root (<tt>-u root</tt>), and that you will enter a password (<tt>-p</tt>). </p>
      
		<p><b>Tip:</b>  <tt>mysqladmin</tt>
is a utility that lets you perform various administrative functions
from a command line. It can also be used to retrieve version, process,
and status information from the server. For more information about <tt>mysqladmin</tt>, see <a href=""><tt>mysqladmin</tt>, Administering a MySQL Server</a>. </p>
      
</li><li>	<p> To start up your MySQL server again, make sure you are in your <tt>mysql</tt> directory, and then type </p>

		<p><span class="code">./bin/safe_mysqld &amp;</span></p>

		<p>See <a href="http://www.washington.edu/computing/web/publishing/mysql-install.html#step10">Step 10 of Installing and Starting MySQL</a> for a more detailed explanation about starting MySQL.</p>
</li></ul>

<h4><a name="3">Using cron to Start Your MySQL Server Automatically After a
System Restart</a></h4>

<p>Normally, you would have to start your MySQL server up again after the
system it is running on is restarted.  Cron is a program that can start it for
you, so you don't have to log in and start it again before using your database
after a system restart.</p>

<p>To add a cron job, type the command</p>

<p><span class="code">crontab -e</span></p>

<p>This will open your crontab file in your default editor(vi, unless you've
		changed it).  You will then need to insert this line of text:</p>

<p><span class="code">0,5,10,15,20,25,30,35,40,45,50,55 * * * * /ux01/tools/mysql.starter</span></p>

<p>Then save the file and exit.  You can check the contents of your crontab
file with the command</p><p>

</p><p><span class="code">crontab -l</span></p>

<p>To delete all of your cron jobs, type the command</p>

<p><span class="code">crontab -r</span></p>

<h4><a name="4">Logging Client Interaction With Your MySQL Server</a></h4>

<!-- As a security measure or for archival reference, you can log all connections and queries made to your MySQL server.  logging will tell you the portthat your MySQL server is running on, the path to your socket file, the time and location of a connection, and the SQL commands that were run during each connection to the server.  -->

<p>Your MySQL server can log all information about all connections and
queries made to it. To start up your MySQL server with logging enabled,
first make sure your server is stopped, and then
start it in the following way:</p>

<p><span class="code">./bin/safe_mysqld --log="<i>logfilepath</i>" &amp;</span></p>

<p>Replace <tt><i>logfilepath</i></tt> with the entire path to a log file
whose name you make up yourself.  Since all other MySQL logs are kept in the
<tt>data</tt> directory, it might be a good idea to use something like
"<tt><i>/rc34/d82/accountname</i>/mysql/data/connections.log</tt>", with
<tt><i>/rc34/d82/accountname</i></tt> replaced with the actual path to your home directory.</p><p>

</p><p> To view the most recent activity on your MySQL server, simply type the following command:</p>
      
<p><span class="code">tail -20 ~/mysql/data/<i>connections.log</i></span></p>

<p>If necessary, replace <tt><i>connections.log</i></tt> with the name of your log file.  You will see something like this:</p>

<table class="code"><tbody><tr><td>
<pre>/rc34/d82/<i>accountname</i>/mysql/bin/mysqld, Version: 4.0.15-log, started with:
Tcp port: XXXX  Unix socket: /rc34/d82/<i>accountname</i>/mysql.sock
Time                 Id Command    Argument
020807 16:34:47       1 Connect    root@localhost on
020807 16:34:52       1 Query      SHOW DATABASES
020807 16:34:57       1 Init DB    John_Doe
020807 16:35:02       1 Query      SHOW TABLES
020807 16:35:13       1 Query      SHOW COLUMNS FROM friends
020807 16:35:18       1 Quit      
020807 16:36:23       2 Connect    root@veron01.u.washington.edu on 
                      2 Init DB    mysql
                      2 Quit      
020807 16:47:56       3 Connect    root@localhost on 
                      3 Shutdown</pre>
</td></tr>
</tbody></table>

<p>Your log file will tell you the port that your MySQL server is running on, the path to your socket file,
the time and location of each connection to your MySQL server, and the SQL commands that were run during each connection.</p>

<p>If you do choose to keep MySQL logs, be sure to monitor them. Log
files can get large very quickly and need to be flushed on a regular
basis.</p>

<!--<p>The output above shows all activity that occurred during the MySQL server's(very short) uptime.  The first connection was made using the command-line MySQLclient; we know this because the user was <tt>root</tt> and he was connectingfrom <tt>localhost</tt> (the server on which his MySQL server is running).  Heasked to see the databases available to him, to use the database John_Doe, toshow the tables in John_Doe, and then to show the columns from the friendstable.  He then quit.  The second connection was made from a UW Web server;<tt>veron01</tt> is the Web server that hosts faculty, staff, courses, anddepartmental Web sites.  The database <tt>mysql</tt> was initialized through aweb script, and then the connection to the server expired when the user left theWeb page.  The third and final connection was again made from the MySQL hostserver - this time the user <tt>root</tt> shut down the server with the<tt>mysqladmin</tt> utility.</p>-->

<h4><a name="5">References</a></h4>

<p> See the main <a href="http://www.mysql.com/doc/">MySQL Documentation</a> for more help. The following links may also be useful for configuring, administering, and troubleshooting your MySQL server:</p>

<a href="http://dev.mysql.com/doc/mysql/en/Server-Side_Scripts.html">MySQL Server-Side Scripts</a><br>
<a href="http://dev.mysql.com/doc/mysql/en/Client-Side_Scripts.html">MySQL Client-Side Scripts Page</a><br>
<a href="http://dev.mysql.com/doc/mysql/en/Log_Files.html">MySQL Log Files</a>

<p><b>Tip:</b> <a href="http://www.phpmyadmin.net/">phpMyAdmin</a> is a web-based PHP utility that provides a simple graphical interface for many MySQL administrative tasks.  See <a href="http://www.washington.edu/computing/web/publishing/phpmyadmin.html">Installing phpMyAdmin</a> for information on how to set up and use phpMyAdmin.</p>



<div id="footer"><div id="footerseal">
<a href="http://www.washington.edu/"><img src="mysql-admin_files/footersealW.gif" alt="UW Seal"></a>
</div>
<div id="addressright"><address>
A service provided by<br>
<a href="http://depts.washington.edu/cac/"><img src="mysql-admin_files/CnC_full_UW_Purple-1.gif" alt="Computing &amp; Communications" border="0" height="14" width="202"></a>
</address>
</div>
<div id="address"><address>
<a href="http://depts.washington.edu/cac/">Computing 
&amp; Communications</a><br> 
help@cac.washington.edu<br>
Modified: May 16, 2005
</address>

</div>
</div>


<!--Created by chtml  on Sep 15, 2006 11:44am--></body></html>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲福利一区二区三区| 亚洲女厕所小便bbb| 欧美性猛片aaaaaaa做受| 94-欧美-setu| 一本到一区二区三区| 色综合久久久久综合体 | 久久综合成人精品亚洲另类欧美| 欧美日韩成人一区| 日韩欧美激情四射| 久久久精品国产99久久精品芒果| 久久免费看少妇高潮| 日本一二三不卡| 樱花影视一区二区| 人人狠狠综合久久亚洲| 九色综合狠狠综合久久| 成人美女在线视频| 欧美视频一区二区在线观看| 91麻豆精品国产综合久久久久久 | 狠狠色狠狠色综合系列| 国产精品亚洲а∨天堂免在线| 国产成人免费网站| 色偷偷久久人人79超碰人人澡| 欧亚洲嫩模精品一区三区| 欧美另类z0zxhd电影| 久久午夜电影网| 亚洲色图视频网站| 麻豆成人91精品二区三区| 丁香另类激情小说| 91精品国产综合久久香蕉麻豆| 久久一日本道色综合| 依依成人精品视频| 精品一区二区三区的国产在线播放| 福利一区二区在线| 欧美美女视频在线观看| 国产精品毛片久久久久久久| 亚洲成人1区2区| 国产成人av一区二区| 精品视频色一区| 国产精品视频一二| 欧美aaa在线| 色网站国产精品| 国产欧美一区二区精品性色超碰 | 日韩二区三区四区| 99久久久久久99| 欧美va天堂va视频va在线| 亚洲狼人国产精品| 成人精品亚洲人成在线| 欧美一区二区网站| 一区二区三区不卡在线观看| 国产在线观看一区二区| 欧美一区二区视频在线观看2020| 中文字幕在线观看一区| 国产中文字幕精品| 91精品婷婷国产综合久久性色 | 国产视频不卡一区| 久久精品理论片| 欧美日韩国产综合一区二区| 国产精品久久777777| 国产福利一区二区三区视频| 精品久久久久久综合日本欧美| 亚洲成人激情综合网| 欧美亚洲国产一区在线观看网站| 国产精品动漫网站| 国产成人免费av在线| 久久在线观看免费| 久久成人18免费观看| 日韩一区二区三区在线视频| 三级久久三级久久久| 欧美日韩国产首页| 日韩黄色一级片| 日韩一级片网站| 久久成人av少妇免费| 精品欧美一区二区久久| 国产在线视频不卡二| ww亚洲ww在线观看国产| 美女脱光内衣内裤视频久久网站| 8x8x8国产精品| 蜜桃视频一区二区三区| 欧美电影免费观看高清完整版在| 奇米亚洲午夜久久精品| 精品免费视频.| 韩国午夜理伦三级不卡影院| 久久精子c满五个校花| 成人开心网精品视频| 亚洲视频资源在线| 欧美网站大全在线观看| 日韩和的一区二区| 欧美mv日韩mv亚洲| 国产91对白在线观看九色| 国产精品伦一区二区三级视频| 9人人澡人人爽人人精品| 亚洲一区二区三区不卡国产欧美| 欧美亚洲高清一区二区三区不卡| 亚洲成人在线观看视频| 欧美大胆一级视频| 91小视频免费看| 午夜av区久久| 中国av一区二区三区| 91久久精品国产91性色tv| 日韩精品乱码av一区二区| 久久久久久久综合狠狠综合| 日本道免费精品一区二区三区| 日韩高清在线不卡| 国产肉丝袜一区二区| 在线免费观看一区| 国产一区二区三区av电影 | 欧美色图在线观看| 狠狠狠色丁香婷婷综合久久五月| 亚洲欧洲成人自拍| 日韩午夜av一区| 91久久免费观看| 国产sm精品调教视频网站| 一区二区三区高清| 亚洲国产精品成人久久综合一区| 欧美自拍偷拍一区| 成熟亚洲日本毛茸茸凸凹| 日韩电影在线观看电影| 国产精品理伦片| 久久免费电影网| 欧美一级艳片视频免费观看| 不卡一区二区中文字幕| 激情国产一区二区| 午夜伦理一区二区| 一区二区三区精品在线观看| 久久先锋影音av鲁色资源 | 国产一区二区三区精品视频| 亚洲午夜久久久久久久久电影院| 欧美国产日本韩| 久久久综合视频| 欧美成人伊人久久综合网| 欧美亚洲一区三区| 91成人在线精品| 91麻豆国产精品久久| 国产成人丝袜美腿| 精品一区二区三区在线观看| 天堂影院一区二区| 亚洲午夜三级在线| 一区二区三区**美女毛片| 中文字幕日韩一区| 中文字幕一区二区不卡| 中文字幕巨乱亚洲| 中文字幕免费不卡| 国产精品久久夜| 日韩美女啊v在线免费观看| 中文字幕不卡在线观看| 国产亚洲欧洲997久久综合 | 国产成人在线视频免费播放| 激情av综合网| 国产成人综合在线| 成人免费视频视频| 91麻豆免费看片| 欧美在线观看一二区| 在线观看一区二区视频| 欧美天天综合网| 欧美色网一区二区| 欧美一级国产精品| 精品国产乱码久久久久久蜜臀| 日韩视频123| 国产午夜亚洲精品不卡| 国产欧美日韩精品a在线观看| 国产欧美日韩另类一区| 亚洲欧洲美洲综合色网| 亚洲一区二区三区在线看| 调教+趴+乳夹+国产+精品| 青草国产精品久久久久久| 激情综合网av| 99国产精品久久久久久久久久 | 国模套图日韩精品一区二区| 国产精品1区2区3区| 成人禁用看黄a在线| 色av一区二区| 日韩欧美国产不卡| 中文久久乱码一区二区| 亚洲精品国产成人久久av盗摄 | 亚洲日本丝袜连裤袜办公室| 一区二区三区在线影院| 蜜臀精品久久久久久蜜臀| 国产精品白丝jk白祙喷水网站| 丁香激情综合五月| 欧美在线免费观看亚洲| 在线播放日韩导航| 国产精品日日摸夜夜摸av| 亚洲综合视频在线| 国产一区二区日韩精品| 99久久精品情趣| 欧美一级高清大全免费观看| 国产欧美精品日韩区二区麻豆天美| 一区二区三区免费看视频| 精品一区二区免费视频| 91视频国产资源| 欧美精品一区二区三| 亚洲精品免费播放| 国产盗摄一区二区三区| 欧美日韩高清一区二区三区| 中文字幕第一区综合| 九一久久久久久| 欧美日本一区二区三区四区| 国产精品美女久久久久aⅴ| 欧美bbbbb| 欧美精品一级二级|