服务器搭建之六mysql数据库服务器_第1页
服务器搭建之六mysql数据库服务器_第2页
服务器搭建之六mysql数据库服务器_第3页
服务器搭建之六mysql数据库服务器_第4页
服务器搭建之六mysql数据库服务器_第5页
免费预览已结束,剩余2页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Linux服务器搭建之六:mysql数据库服务器这个丢脸了,我没有学过SQL没有操作过MySQL数据库,只是渗透时获取别人的数据库文 件而已。既然搭建好了就不怕献丑。Linux操作系统平台:Fedora 14账户:root主要软件包: mysql-serverMySQL数据库服务器搭建流程:1. 【rpm -qa | grep mysql 】命令查看有关 mysql的软件包,里面有个 mysql-server 就是 我们想要的:rootetianlang 丁 rpm -qa |grep mysqt mysql-5,E69-1,fcl4.i686nysql-libs-5.1.68-1. fcl

2、4.1686nysql-server-S.1.60-1,fc14,1686口ot也tianlanc; 1車2. 在 root 账户里安装 mysql-server 服务器:【yum -y in stall mysql-serveroattidnlangi-文件IF堀矩旧查看(V)槻索终端帮肋(H)tianlang®tianlang '5 su -密码:rootetianlang 'if yum -y install mysqt-server已如载插(牛:axelget, fastestmirror, ldngpacksr presto, refresh-package

3、kitAdding zh_CN to language listLoading mirror speeds from cached hostfile* fedora: dl.fedoraproject.og* updates: dl.fedoraprojectnorg解决依赖关系执行爭务检宜 > 软件包 mysql-server. i686 0:5.1.60-1. fc14 将徹 安装-> 祉理依赖关系 my5ql(x86-32) = 5. 1.&0-1.fcl4P 它被软件包 mysql-server-S. 1.需餐-> 4t理依赖关系 litwysqlclient

4、.so. 16(libnysqlclient_1&),它It软件包 mysql-sr*5.1.60-1.fc14.168G 需要Ab®依赖芸系 litMysqlcUent_r.so. 1G(UbwysqlcUent. 16),它被软杵包 «ysql ver-5,1.60-1 , fc14. 1686 需妥一、处理依赖关系AH里依輾关系 -扯理依籁笑系 -赴理依赖关系 686需妾-牡理依載关系perl-DBIr 它被软件邑 nysql-server-K. 1.6#rJi.fc14<i6S6 需要 perl-DBD-MySQU 它被软件包 iiysql-serve

5、r-5.16a-1 >fci<i6fiG perl(DBI) r 它戡软卅包 mysql- server- 5.1. 6fl-1 - fell. i686 需要 libmysqlcHent_r. so. 16,它被软件包 mysql-server-5.1. 6fl-1.fclibmysqlclient.so.lfi;它被软件包 m/sqlserver-5. r60- kfci43. 安装成功,看看吧,yum会自动安装与 mysql-server软件包相关的底层类库的,非常智文件(FtWEj査看(旳llSt终端(T)帮(HjConnection 0 linishedConnectio

6、n 9 finished100% ,426.8KB/S 06Downloaded 1263.1 kilobytes in 1 seconds. 426.B0 KB/5)运彳亍pui-匚hEck debug执行爭务洒试事务则试腔功执行爭务正在安装 正在安装 正在安装 正在安装 正在安装:mysql-libs-5,1,60-1 .fcU. 1686;perl-DBI-1.61J-1 Jc14.1686:mysqI-5-1,60-l-fc14.1686:perl-DB3-ttySQL?4.817-1.fc14.1656:mysql-server-5.1.60-1.fc14.i686已安装;mysql

7、-server.i686 6:5.1,6G-1rfc14件为依赖被安装:FFysqLi636 e:5J.6e-kfcl4inysqblibs. 16B6 6:5.k66-kfc14perI-DBD-MySQL.i6B6 0:4.017-1,fc14perl'DBI+1686 0:1.6131.fc!4完毕!rootftlanlang '#4. 开启 mysql-server 服务器吧:【service mysql start文件旧编眉旧鱼看W投索终端帮助.H)root&tianlang service mysqld start初始化 MySQL 数据库;Inst日lli

8、ng MySQL system tables., OKFilling help tables.OKTo start mysqld at boot time you have to copy supportfiles/mysql.server to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USEK 1 To do so, start thE server, then issue the following commands:/usr/bin/mysqladmin -u

9、root password 'new-password1 /usr/bin/mysqladmin -u root -h tianlang password new-password'AlternativEly you can run:Zusr/bi.n/mysql_secure installationwhich will also give you the option of removing the test databases 白nF anonymous user created by default. This is 5trongly recommended for p

10、roduction servers.See the manual for more instructions.You can start the MySQL daemon with:cd /us r ; /usr/bin/mysqld_ safe E5. 使用【mysqladmin -u root passwd 'root'】新建数据库服务器账户:使用【mysql -u root -p 】登录 mysql-server 服务器吧:rootftianlang mysqladmin -u root password 'root'rootfltianlang mysq

11、l -u root -pEnter password:Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 4Server version: 5,1.60 Source distributionCopyright c) ( 2011, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its affiliates

12、. Other names may be trader白k of their respective owners.Type 1 help;1 ar 1h' for help. Type 'c1 to clear the current input statement.mysql>6. 使用【?】查看 mysql提供的命令吧:文件(F)编输E)查看W)披鬧S终端仃)帮助冋mysql> ?For information about MySQL products and services, visit:http:/For developer information! in

13、cluding the MySQL Reference ManuaL visit: http:/devmysql,com/To buy MySQL Enterprise support, training or other products, visit: https:/Shop,List of all MySQL commands:Note that all text command£ must be first on line and end with '?clear(c)connect()delimiter(d)edit(ejego(G)exit(q)go(g)help

14、(hjnopager(n)notee(Ppager(P)print(p)prompt(RJquit(q)rehash(#JSynonym for 'help'.Clear the current input statement.Reconnect to the server; Optional arguments are db and host. Set statement delimiter.Edit command with EDITOR*Send command to mysql server, display result vertically.Exit mysql*

15、Same as quit.Send command to mysql server.Display this help.Disable pager, print to stdout.Don1t write into outfile.Set PAGER to_pager Print the query results via PAGER. Print current command, 匚hange your mysql prompt.Quit mysql.Rebuild completion hash<connect delimiter 创it ego exit go help nopag

16、er no tee pagr print prompt quit rehash source status system tee use charsetg g (q) (g) (h) (n) (t) (P) (p) 心) g M (J (s) (I) (T) (u) (C)文件(F)缩涓E査看W,搜索旧)轻端汀)帮助KH)Reconnect to the server. Optional argumenare db and host, Set statement detimiteEdit cammand with $EDITOR.Send command to mysql server, di

17、splay result vertically-Exit m/sql. Same as quit5end command to mysql server.Display this help*Disable pager print to stdoutDon't write into outfile.Set PAGER to.pager. Print the query results via PAGER.Print current command.Change your mysqt prompt.Quit mysql.Rebuild completion hash.Execute an

18、SOL script file. Takes a file name as an argument, (jt status information from the server.Execute 曰 system shell command,Set outfile to_outfile, Append everything into given outfit Use another database. Takes database name as argument.Switch to another charset. Might be needed for processing binwith multi-byte tharsets. warnings (W) Show warnings after every statement, nowarning (w) Don't show warnings after every statement,For server side helpj type 'help contents mysql>create database sqli;Qjery

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论