RedHat AS6安装MySQL
RedHat 版本: 6.2 mysql 版本: mysql-5.5.19 安装包文件名: mysql-5.5.19-linux2.6-x86_64.tar.gz 一、安装步骤: 在官网上
RedHat 版本: 6.2
mysql 版本: mysql-5.5.19
安装包文件名: mysql-5.5.19-linux2.6-x86_64.tar.gz
一、安装步骤:
在官网上下载mysql-5.5.19-linux2.6-i686.tar.gz压缩包,此包解压后为编译好的文件,不需要咱们自己编译、安装,直接修改配置即可用。
1、将 mysql-5.5.19-linux2.6-x86_64.tar.gz 拷贝至 /opt 目录
2、解压
# tar -zxvf mysql-5.5.19-linux2.6-i686.tar.gz -C /usr/local/ ;
注意:解压到/usr/local/ 非常重要
3. 将 mysql-5.5.19-linux2.6-x86_64 文件夹改名为 mysql
注意:现在mysql的目录为:/usr/local/mysql(如果放在其他目录,安装问题会很多)
4、建立数据库的用户组和用户
# groupadd mysql
# useradd -g mysql mysql
5、将mysql启动脚本mysql.server复制到/etc/rc.d/init.d目录中,命名为mysql;
# cp support-files/mysql.server /etc/rc.d/init.d/mysql
7、复制mysql配置文件my-medium.cnf到/etc/目录中,命名为my.cnf;
# cp support-files/my-medium.cnf /etc/my.cnf
8、修改mysql目录权限;
# chown -R root /usr/local/mysql //改变mysql目录的所属用户
# chgrp -R mysql /usr/local/mysql //改变mysql目录的所属组
# chown -R mysql /usr/local/mysql/data //改变data目录的所属用户,此目录用于存放数据库
9、生成mysql系统数据库。执行/usr/local/mysql/scripts/mysql_install_db安装授权表.
# /usr/local/mysql/scripts/mysql_install_db --user=mysql&
10、启动mysql服务.运行/usr/local/mysql/bin/mysqld_safe
# /usr/local/mysql/bin/mysqld_safe --user=mysql&
如果出现:Starting mysqld daemon with database from /usr/local/mysql/data代表正常启动mysql服务器。
11、启动mysql服务
# /etc/rc.d/init.d/mysql start
12、启动mysql
# /usr/local/mysql/bin/mysql
出现mysql>
到此,mysql就搞定了,,你可以操作数据库,可以修改管理员密码了……
启动mysql注意问题:
(1)要启动mysql必须先启动mysql_safe服务(上边第10步)。
# /usr/local/mysql/bin/mysqld_safe --user=mysql&
(2)其次启动mysql服务(上面第11步)
# /etc/rc.d/init.d/mysql start
(3)然后启动mysql
# /usr/local/mysql/bin/mysql
二、登录mysql方法:
(1)如果你已经在/usr/local/mysql/bin目录
执行:# ./mysql
如果 root用户设置了密码
执行:
./mysql -u root -p
输入mysql root的密码,然后回车。
(2)如果你在其他目录
执行:# /usr/local/mysql/bin/mysql
如果 root用户设置了密码
执行:
/usr/local/mysql/bin/mysql -u root -p
输入mysql root的密码,然后回车。
三、Linux 下 让mysql 自动启动
在MySQL安装程序的解压包/usr/local/mysql/support-files有一个叫myslq.server的启动脚本程序。把它复制到/etc/rc.d/init.d目录里面:
# cd /etc/rc.d/init.d
# cp /usr/local/mysql/support-files/mysql.server mysql
接着把它的属性改为“x”(executable,可执行)
# chmod +x mysql
最后,运行chkconfig把MySQL添加到你系统的启动服务组里面去。
执行chkconfig --add mysql

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics











In 2025, global digital virtual currency trading platforms are fiercely competitive. This article authoritatively releases the top ten digital virtual currency trading platforms in the world in 2025 based on indicators such as transaction volume, security, and user experience. OKX ranks first with its strong technical strength and global operation strategy, and Binance follows closely with high liquidity and low fees. Platforms such as Gate.io, Coinbase, and Kraken are at the forefront with their respective advantages. The list covers trading platforms such as Huobi, KuCoin, Bitfinex, Crypto.com and Gemini, each with its own characteristics, but investment should be cautious. To choose a platform, you need to consider factors such as security, liquidity, fees, user experience, currency selection and regulatory compliance, and invest rationally

PrimeFactor−Innumbertheory,theprimefactorsofapositiveintegeraretheprimenumbersthatdividethatintegerexactly.Theprocessoffindingthesenumbersiscalledintegerfactorization,orprimefactorization.Example−Primefactorsof288are:288=2x2x2x2x2

Ranking of the top ten virtual currency trading platforms (latest in 2025): Binance: Global leader, high liquidity, and regulation has attracted attention. OKX: Large user base, supports multiple currencies, and provides leveraged trading. Gate.io: A senior exchange, with a variety of fiat currency payment methods, providing a variety of trading pairs and investment products. Bitget: Derivatives Exchange, high liquidity, low fees. Huobi: An old exchange that supports a variety of currencies and trading pairs. Coinbase: A well-known American exchange, strictly regulated. Phemex and so on.

Top 10 digital currency trading platforms: 1. OKX, 2. Binance, 3. Gate.io, 4. Huobi Global, 5. Kraken, 6. Coinbase, 7. KuCoin, 8. Bitfinex, 9. Crypto.com, 10. Gemini, these exchanges have their own characteristics, and users can choose the platform that suits them based on factors such as security, fees, currency selection, user interface and customer support.

This article recommends ten digital currency trading apps: 1. OKX; 2. Binance; 3. Gate.io; 4. Huobi Global; 5. Kraken; 6. Coinbase; 7. KuCoin; 8. Crypto.com; 9. Bitfinex; 10. Poloniex. When choosing a platform, you need to consider factors such as security, liquidity, transaction fees, currency selection, user interface, customer service support and regulatory compliance, and carefully evaluate risks and never blindly follow the trend.

Reliable digital currency platforms include: 1. OKX, 2. Binance, 3. Gate.io, 4. Huobi Global, 5. Kraken, 6. Coinbase, 7. KuCoin, 8. Bitfinex, 9. Crypto.com, 10. Gemini. These exchanges have their own characteristics. Users can choose the platform that suits them based on factors such as security, fees, currency selection, user interface and customer support.

This article provides Android and Apple mobile APP download methods for mainstream digital currency trading platforms such as Binance, OKX, Gate.io, Huobi Global, Coinbase, KuCoin, Kraken and Bitfinex. Whether it is an Android user or an Apple user, you can easily find the official APP download link for the corresponding platform and complete the installation according to the steps. The article provides detailed guidance on searching and downloading on their respective official websites or app stores, and provides instructions on the special steps for installing APK files on Android, so that users can download and use them quickly and easily.

The best cryptocurrency trading and analysis platforms include: 1. OKX: the world's number one in trading volume, supports multiple transactions, provides AI market analysis and on-chain data monitoring. 2. Binance: The world's largest exchange, providing in-depth market conditions and new currency first-time offerings. 3. Sesame Open Door: Known for spot trading and OTC channels, it provides automated trading strategies. 4. CoinMarketCap: an authoritative market data platform, covering 20,000 currencies. 5. CoinGecko: Known for community sentiment analysis, it provides DeFi and NFT trend monitoring. 6. Non-small account: a domestic market platform, providing analysis of linkage between A-shares and currency markets. 7. On-chain Finance: Focus on blockchain news and update in-depth reports every day. 8. Golden Finance: 24 small
