linux mysql版本出错_求解答MYSQL安装在LINUX上出错解答

[root@samysql5]#./configure--prefix=/usr/local/mysqlNOTE:ThisisaMySQLbinarydistribution.It´sreadytorun,youdon´tneedtoconfigureit!Tohelpyouabit,Iamnowgoingtocr...

[root@sa mysql5]# ./configure --prefix=/usr/local/mysql

NOTE: This is a MySQL binary distribution. It´s ready to run, you don´t

need to configure it!

To help you a bit, I am now going to create the needed MySQL databases

and start the MySQL server for you. If you run into any trouble, please

consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables

Fill help tables

To start mysqld at boot time you have to copy support-files/mysql.server

to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !

To do so, start the server, then issue the following commands:

./bin/mysqladmin -u root password ´new-password´

./bin/mysqladmin -u root -h sa password ´new-password´

See the manual for more instructions.

NOTE: If you are upgrading from a MySQL <= 3.22.10 you should run

the ./bin/mysql_fix_privilege_tables. Otherwise you will not be

able to use the new GRANT command!

You can start the MySQL daemon with:

cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the ´sql-bench´ directory:

cd sql-bench ; perl run-all-tests

Please report any problems with the ./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 https://order.mysql.com

Starting the mysqld server. You can test that it is up and running

with the command:

./bin/mysqladmin version

[root@sa mysql5]# Starting mysqld daemon with databases from /usr/local/mysql5/data

STOPPING server from pid file /usr/local/mysql5/data/sa.pid

060417 11:12:03 mysqld ended

展开

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Linux系统中安装ucenter时,可能会遇到mysql_connect错误。这个错误通常是由于MySQL的驱动程序未正确安装或配置引起的。 首先,我们需要确认MySQL驱动程序是否已正确安装。可以通过运行命令`php -m`来检查是否已安装必需的扩展模块。如果没有安装,可以使用以下命令安装:`sudo apt-get install php-mysql`。这将安装MySQL驱动程序所需的PHP扩展模块。 如果MySQL驱动程序已正确安装,那么问题可能是由于MySQL配置引起的。我们需要检查MySQL配置文件是否正确设置。可以使用`sudo nano /etc/mysql/my.cnf`命令打开MySQL配置文件,确保以下内容的设置正确: ``` [client] default-character-set=utf8mb4 [mysql] default-character-set=utf8mb4 [mysqld] character-set-client-handshake=FALSE character-set-server=utf8mb4 collation-server=utf8mb4_unicode_ci ``` 保存并关闭配置文件后,重启MySQL服务:`sudo service mysql restart`。 如果问题仍然存在,可能还需要检查ucenter的配置文件。可以使用文本编辑器打开ucenter的配置文件(通常是`/var/www/your_ucenter_directory/uc_config.inc.php`),确保以下内容的设置正确: ``` define('UC_DBHOST', 'localhost'); define('UC_DBUSER', 'your_mysql_username'); define('UC_DBPW', 'your_mysql_password'); define('UC_DBNAME', 'your_mysql_database_name'); define('UC_DBCHARSET', 'utf8'); define('UC_DBTABLEPRE', '`your_mysql_database_name`.uc_'); define('UC_DBCONNECT', '0'); ``` 请注意替换上述的`your_mysql_username`、`your_mysql_password`和`your_mysql_database_name`为您实际的MySQL用户名、密码和数据库名称。 完成以上步骤后,应该重新运行ucenter的安装程序并确保正确填写数据库相关信息。这样应该解决了在Linux系统中安装ucenter时出现的mysql_connect错误。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值