fedora7安装mysql
/*研究了半天,终于搞定,现将终端文本供大家参考*/
///////////////////////////////////////////////////////////////////
------------------------------------------------------------------
[mysql下载网址]
[MySQL-server-community-5.1.22-0.rhel5.i386.rpm]
[MySQL-client-community-5.1.22-0.rhel5.i386.rpm]
http://dev.mysql.com/downloads/mysql/5.0.html#downloads
[perl-DBI-1.53-2.fc7.i386.rpm]
http://rpmfind.net/linux/rpm2html/search.php?query=perl-DBI
[mysql-connector-java-5.1.5-bin.jar]
http://ftp.ntu.edu.tw/pub/MySQL/Downloads/Connector-J/mysql-connector-java-5.1.5.zip
------------------------------------------------------------------
[mysql安装过程]
[root@localhost usr]# cd MySQLTools
[root@localhost MySQLTools]# ls
mysql.chm
MySQL-client-community-5.1.22-0.rhel5.i386.rpm
mysql-connector-java-5.1.5.tar.gz
MySQL-server-community-5.1.22-0.rhel5.i386.rpm
perl-DBI-1.53-2.fc7.i386.rpm
[root@localhost MySQLTools]# rpm -qa|grep mysql
mysql-libs-5.0.37-2.fc7
php-mysql-5.2.2-3
[root@localhost MySQLTools]# rpm -e php-mysql-5.2.2-3
[root@localhost MySQLTools]# rpm -e mysql-libs-5.0.37-2.fc7
[root@localhost MySQLTools]# ls
mysql.chm
MySQL-client-community-5.1.22-0.rhel5.i386.rpm
mysql-connector-java-5.1.5.tar.gz
MySQL-server-community-5.1.22-0.rhel5.i386.rpm
perl-DBI-1.53-2.fc7.i386.rpm
[root@localhost MySQLTools]# rpm -ivh perl-DBI-1.53-2.fc7.i386.rpm
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@localhost MySQLTools]# rpm -ivh MySQL-server-community-5.1.22-0.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-server-community ########################################### [100%]
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
See the manual for more instructions.
Please report any problems with the /usr/bin/mysqlbug script!
The latest information about MySQL is available on the web at
http://www.mysql.com
Support MySQL by buying support/licenses at http://shop.mysql.com
Starting MySQL.[确定]
Giving mysqld 2 seconds to start
[root@localhost MySQLTools]# netstat -nat
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:716 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN
tcp 0 0 :::111 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
[root@localhost MySQLTools]# rpm -ivh MySQL-client-community-5.1.22-0.rhel5.i386.rpm
Preparing... ########################################### [100%]
1:MySQL-client-community ########################################### [100%]
[root@localhost MySQLTools]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.22-rc-community MySQL Community Edition (GPL)
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use test
Database changed
mysql> create table test1116(id char(10),age integer,name char(20));
Query OK, 0 rows affected (0.00 sec)
mysql> insert into test1116 values ('001',20,'eddy');
Query OK, 1 row affected (0.00 sec)
mysql> select * from test1116;
+------+------+------+
| id | age | name |
+------+------+------+
| 001 | 20 | eddy |
+------+------+------+
1 row in set (0.00 sec)
mysql> exit
Bye
[root@localhost MySQLTools]# mysql
分享到:
相关推荐
这应该是我用过的最简单的Mysql安装方法。在线安装,省去了大部分麻烦,你只要输入几个指令就可以了。如果你网速够快,整个过程只要几分钟就可以完成。由于本人也是新手,不知道为什么有些人安装mysql的步骤那么麻烦...
Fedora 15 安装 Nginx (PHP-FPM)+MySQL+PHP Web服务.docx
Redhat/Fedora/CentOS下执行: yum install libaio 4、修改root密码及允许远程访问 输以下命令回车并输入密码登录mysql #mysql -uroot -p 通过sql更新密码及远程访问权限 mysql> use mysql; mysql> update user ...
Fedora 10下整合安装mysql-5.1.31、httpd-2.0.63 、php-5.2.6 搭建lamp参考文档。
Fedora下装MySQL命令 首先赘述几句,我也是刚开始学习MySQL,如果有不对的地方,请大家指正,希望自己的一点点经验,能够帮到大家。下面开始介绍我的安装: 1. 我的操作系统是Fedora release 17。 在这里不涉及...
说明:rpm –qa | grep mysql 命令是为了把mysql相关的包都列出来,我上面的例子是fedora core2默认安装mysql的rpm软件包列表,如果是别的linux版本列出来的列表有可能会不一样,不过不用担心,不管是什么,卸载都从...
fedora 更新 mysql 到 8.0
fedora 9 libpcap + mysql 实现arp 数据包的捕获与入库
mysql主从复制 两台虚拟机Fedora20 安装相同版本(mysql-community版) 配置hosts 配置主从关系 配置bin-log日志
fedora11 下一些软件的安装使用说明 mysql+php+apache 建立discuz论坛 不关闭selinux
说明:apache,php,mysql,为fedora7自带的,就是说我装系统的时候,就选择上了(在安装fedora7的时候,开发工具要全部安装),cyrus-sasl, postfix,courier-authlib,maildrop,courier-imap 是通过源码编译的,写这...
mysql-connector-java-Fedora
LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat/Fedora、Debian/Ubuntu/Raspbian VPS(VDS)或独立主机安装LNMP(Nginx/MySQL/PHP)、LNMPA(Nginx/MySQL/PHP/Apache)、LAMP(Apache/MySQL/PHP)生产环境的...
Chapter 7: Music, Video, and Images in Linux. Chapter 8: Using the Internet and the Web. Part III: Administering Fedora. Chapter 9: Understanding System Administration. Chapter 10: Setting Up and ...
Nginx+tomcat配置说明,Nginx服务器+mysql数据库安装启动
安装Fedora的要求,以及如何面对安装过程中碰到的问题;GNOME桌面环境、KDE桌面环境和X窗口系统;遍历和理解Fedora以及RHEL的方法。第2部分包括第5章到第9章,分别介绍了获取、安装和运行Linux应用程序的信息;旧式...
这是最新的Qt5的mysql驱动插件,废了好多功夫,终于编译成功了,拿出来分享,在fedora17中编译的,直接复制到Qt安装目录下的Qt5.0.0/5.0.0/gcc_64/plugins/sqldrivers,就可以用了
根据Linux发行版本(CentOS、Fedora都属于红帽系),从mysql官方(http://dev.mysql.com/downloads/repo/yum/)获取Yum Repository。 [root@typecodes ~]# wget -i ...
在线安装Mysql,目前官方提供Centos ,Red Hat ,Fedora ,Oracle。