


下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Linux服务器搭建之六:mysql数据库服务器这个丢脸了,我没有学过SQL,没有操作过MySQL数据库,只是渗透时获取别人的数据库文 件而已。既然搭建好了就不怕献丑。Linux操作系统平台:Fedora 14 账户:root主要软件包:mysql-serverMySQL数据库服务器搭建流程:1. rpm -qa | grep mysql命令査看有关mysql的软件包,里面有个mysql-server就是 我们想要的:roottianlang rpm -qa |grep mysqlmysql-5.1.60-1.fc14.i686mysql-libs-5.1.60-1.fc14-i686mysq
2、l-server-5.1.60-1.fc14.i686ootPt伽lana F 2在 root 账户里安装 mysql-scrver 服务器:yum -y install mysql-server文件(F)编辑(E)查看(V)搜索 终端(T)帮助(H)tianlangtianlang 、$ su -密码:rootetianlang '# yum -y install mysql-server已力D载扌宙件:axelget, fastestmirror, langpacks, presto, refresh-packagekit Adding zh_CN to language list
3、Loading mirror speeds from cached hostfile* fedora: * updates: 设迓安装进程 解决依赖关系->执行爭务检查-> 软件包 mysql-server. i686 0: 5 .1. 60-1. fc14 将被 安装处理依赖关系 mysql(x86-32) = 5.1.60-1 .fc14r 它被软件包 mysql-server-5.1.60-1 .fc14.1686 需要-> 处理依赖关系 libmysqlclient.so. 1 6(libm
4、ysqlclient_16).它被软件包 mysqlsen/e r-5-1.60-1 .fc14.i68& 需要-> 处理依赖关系 libmysqlclient.r.so. 16(libmysqlclient_16)r 它被软件包 mysql-ser ver-5.1.60-1. fc14.1686 需要perVDBI,它被软件包 mysql-server-5.1.69-1.fcl4.1686 需妥 perl-DBD-MySQL,它被软件包 mysql-server-5.1.60-1. fc14.1686 需要 perl(DBI) r 它被软件包 mysql-server-5.1.
5、 60-1 .fc14. i68 6 需要 libmysqlclient.r.so. 16r 它被软件包 mysql-server-5.1.68-1 .fc14. i->处理依赖关系->处理依赖关系处理依赖关系处理依赖关系libmysqlclient.so. 16f 它被软件包 mysql-server-5.1.60-1.fc14.i&8686需要处理依赖关系3安装成功,看看吧,yum会自动安装与mysql-server软件包相关的底层类库的,非常智 能文件(F)编辑(E)查看(V)搜索(S)终端(T)帮助(H)Connection 0 finishedConnection
6、 9 finished100% 426.8KB/S 00:00Downloaded 1263.1 kilobytes in 2 seconds. (426.80 KB/s)运行 rpm_check_debug执行事务测试爭务测试成功执行事务正在安装:mysql-libs-5.1.60-1.fc14.i6861/5正在安装:perI-DBI-1.613-1.fc14.i6862/5正在安装:mysql-5.1.60-1.fc14.16863/5正在安装:perl-DBD-MySQL-4.017-1.fc14.16864/5正在安装:mysql-server-5.1.60-1.fc14.i6865
7、/5已安装:mysql-serveri686 0:5.1.60-1.fc14作为依赖被安装: mysql.i686 0:5.1.60-1.fc14mysql-Iibs.i686 0:5.1.60-1.fc14perl-DBD-MySQL. 1686 0:4.017-1 .fc14perbDBI.i686 0:1.613-1. fc14完毕!rootetianlang4开启 mysql-server 服务器吧:I service mysql startroottianlang:文件(F)编辑(E)查看(V)搜索(S)终端(T)帮助(H)root©tianlangservice mysq
8、ld startQ材始化 MySQL 数据库:Installing MySQL system tables.OKFilling help tables-OKTo start mysqld at boot time you have to copy support-files/mysqlserver to the right place for your systemPLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !To do so, start the server, then issue the following comm
9、ands:/usr/bin/mysqladmin -u root password 1 new-passworcf /usr/bin/mysqladmin -u root h tianlang passv/ord 1 nev/-passwordAlternatively you can run:/usr/bin/mysql_secure_installationwhich will also give you the option of removing the test databases and anonymous user created by default This is stron
10、gly recommended for production serversSee the manual for more instructions.You can start the MySQL daemon with: cd /usr ; /usr/bin/mysqldsafe &5使用【mysqladmin -u root passwd 'root'】新建数据库服务器账户: 使用【mysql u root -p登录mysql-server服务器吧:rootetianlang、# mysqladmin root passv/ord ' root*rootet
11、ianlang 、# mysql -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) 2000, 2011, Oracle and/or its affiliates. AU rights reserved.Oracle is a registered trademark of Oracle Corporation and
12、/or its affiliates Other names may be trademarks of their respective ownersType 1 help;1 or 'Xh* for help. Type lcl to clear the current input statementmysql> j6使用【?】査看mysql提供的命令吧:mysql> ?(?)clear(C)connect(r)delimiter(d)edit(e)ego(G)exit(q)go(g)help(h)nopager(n)notee(t)pager(P)print(p)pro
13、mpt(R)quit(q)rehash(#)For information about MySQL products and services, visit: http:/ww For developer information, including the MySQL Reference Manual“ visit: http;/To buy MySQL Enterprise support; training, or other products; visit: https:/shop mysqlcom/List of dll MySQL commands:Note that all te
14、xt commands must be first on line and end withSynonym for xhelp1.Clear the current input statement.Reconnect to the server. Optional arguments are db and host. Set statement delimiterEdit command with $EDITOR.Send command to mysql server, display re&ult vertically.Exit mysql. Same as quit.Send c
15、ommand to mysql serverDisplay this helpDisable pager, print to stdoutDon1t write into outfile.Set PAGER to.pager. Print the query results via PAGER.Print current commandChange your mysql promptQuit mysql.Rebuild completion hashconnect delimiter edit ego exit go help nopager notee pager print prompt
16、quit rehash source status system tee use charset() (d) (e) (G) (q) (g) (h) (n) (t) (P) (p) (R) (q) (#) (.) (s) (!) (T) (u) (C)with multi-byte charsets warnings (V/) Show warnings after every statement nov/arning (w) Don*t show v/arnings after every statement.rdc)ttianlang:-文件(F)编辑(E)查看(V)搜索(S)终端(T)帮
17、助(H)Reconnect to the server Optional arguments are db and hostSet statement delimiterEdit command with $EDITOR.Send command to mysql server, display result vertically.Exit mysql. Same as quit.Send command to mysql serverDisplay this helpDisable pager, print to stdoutDon't write into outfileSet P
18、AGER to.pager. Print the query results via PAGER.Print current commandChange your mysql promptQuit mysqlRebuild completion hashExecute an SQL script Hie. Takes a file name as an argument.Get status information from the serverExecute a system shell commandSet outfile tooutfile Append everything into given outfileUse another database Ta
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 现金收购债权合同范本
- 墓碑加工承揽合同范本
- 店面转让股权合同范本
- 出售特殊房子合同范本
- 执法稽查面试题目及答案
- 工业互联网应用案例解析与企业数字化转型实践经验分享
- 浙江省浙南名校联盟2025-2026学年高二上学期开学联考历史试卷
- 运城市小学考试试题及答案
- 2025年石油公司加油站人员安全操作知识考试题(附含答案)
- 2025年公共文秘教程考试题及答案
- 墨菲定律课件教学课件
- 04S519小型排水构筑物(含隔油池)图集
- 高考数学一轮复习高频考点精讲精练(新高考专用)第11讲拓展四:导数中的隐零点问题(高频精讲)(原卷版+解析)
- 高校军事理论教育课教案
- 汉字历史-汉字的起源及形体演变(古代汉语课件)
- 八年级(上)+道德与法治+课程纲要
- 人教版部编版统编版一年级语文上册《我爱我们的祖国》课件
- 住院医师规范化培训临床小讲课的设计与实施培训课件
- 振动型式试验报告范本
- 基因工程与生命伦理
- 糖尿病酮症酸中毒抢救流程
评论
0/150
提交评论