mysql图形管理工具mysqlphpadm安装_MySQL
bitsCN.com
mysql图形管理工具mysqlphpadm安装
[root@localhost mbstring]# wget http://jaist.dl.sourceforge.net/project/phpmyadmin/phpMyAdmin/4.0.8/phpMyAdmin-4.0.8-all-languages.tar.gz
[root@localhost mbstring]# tar xf phpMyAdmin-4.0.8-all-languages.tar.gz -C /www
[root@localhost mbstring]# chown daemon.daemon /www/ -R
[root@localhost mbstring]# service apache restart
访问页面http://127.0.0.1/phpadmin/index.php
报错
The mbstring extension is missing. Please check your PHP configuration.
错误很明显php模块扩展,由于我已经装好了php,又不想重新编译,所以就只能动态扩展
[root@localhost logs]# cd /usr/src/php-5.3.27/ext/
[root@localhost ext]# cd mbstring/
[root@localhost mbstring]# phpize -----生成configure 等文件
[root@localhost modules]# ./configure --with-libdir=/usr/local/lib/php/extensions/no-debug-zts-20060613 --with-php-config=/usr/local/bin/php-config
[root@localhost modules]# make && make install
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-zts-20090626/ ----------这个路径就是php模块扩展的路径
Installing header files: /usr/local/include/php/
[root@localhost modules]# pwd
/usr/src/php-5.3.27/ext/mbstring/modules
[root@localhost modules]# ls
mbstring.so
接下来就是要修改php.ini了
[root@localhost modules]# vi /usr/local/lib/php.ini
extension="/usr/local/lib/php/extensions/no-debug-zts-20090626/"
extension=mbstring.so
加入这两行,然后重启apache
再次访问http://127.0.0.1/phpadmin/index.php
授权一个tt用户
mysql> grant all on *.* to tt@localhost identified by '123';
Query OK, 0 rows affected (0.12 sec)
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
以tt用户登录
发现报错,缺少 mcrypt 扩展。请检查 PHP 配
又是模块扩展,那就在打个补丁吧。
[root@localhost mcrypt]# pwd
/usr/src/php-5.3.27/ext/mcrypt
[root@localhost mcrypt]# ls
config.m4 mcrypt.dsp mcrypt.lo tests
config.w32 mcrypt_filter.c mcrypt.o TODO
CREDITS mcrypt_filter.lo php_mcrypt_filter.h
mcrypt.c mcrypt_filter.o php_mcrypt.h
[root@localhost mcrypt]# phpize;ls
Configuring for:
PHP Api Version: 20090626
Zend Module Api No: 20090626
Zend Extension Api No: 220090626
acinclude.m4 config.w32 mcrypt.lo
aclocal.m4 CREDITS mcrypt.o
autom4te.cache install-sh missing
build ltmain.sh mkinstalldirs
config.guess Makefile.global php_mcrypt_filter.h
config.h.in mcrypt.c php_mcrypt.h
config.m4 mcrypt.dsp run-tests.php
config.sub mcrypt_filter.c tests
configure mcrypt_filter.lo TODO
configure.in mcrypt_filter.o
现在就就可以编译了
[root@localhost mcrypt]# ./configure --with-php-config=/usr/local/bin/php-config --with-mcrypt=/usr
[root@localhost mcrypt]# make
[root@localhost mcrypt]# make install
Installing shared extensions: /usr/local/lib/php/extensions/no-debug-zts-20090626/
[root@localhost mcrypt]# ls modules/
mcrypt.so
[root@localhost mcrypt]# vi /usr/local/lib/php.ini
extension=mcrypt.so ---------------增加这一行
新版本的PhpMyAdmin 增强了安全性,需要在配置文件设置一个短语密码。否则进入之后会有“配置文件现在需要一个短语密码。”的红色警叹提示。 解决方法:
1、将 phpMyAdmin/libraries/config.default.php中的
$cfg['blowfish_secret'] = ''; 改成 $cfg['blowfish_secret'] = '123456'; (注:其中的’123456′为随意的字符)
[root@localhost libraries]# pwd
/www/phpadmin/libraries
[root@localhost libraries]# vi config.default.php
$cfg['blowfish_secret'] = '123456';
2、在phpMyAdmin目录中,打开config.sample.inc.php,18行
$cfg['blowfish_secret'] = ''; 改成 $cfg['blowfish_secret'] = '123456'; (注:其中的’123456′为随意的字符)
这个密码用于Cookies的加密,以免多个PhpMyAdmin或者和其他程序共用Cookies时搞混。
做好以上两步,刷新网页,OK,“配置文件现在需要一个短语密码。”的提示不存在了!
重启apache之后访问没有再报这个错误。
bitsCN.com

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

The main role of MySQL in web applications is to store and manage data. 1.MySQL efficiently processes user information, product catalogs, transaction records and other data. 2. Through SQL query, developers can extract information from the database to generate dynamic content. 3.MySQL works based on the client-server model to ensure acceptable query speed.

The process of starting MySQL in Docker consists of the following steps: Pull the MySQL image to create and start the container, set the root user password, and map the port verification connection Create the database and the user grants all permissions to the database

Laravel is a PHP framework for easy building of web applications. It provides a range of powerful features including: Installation: Install the Laravel CLI globally with Composer and create applications in the project directory. Routing: Define the relationship between the URL and the handler in routes/web.php. View: Create a view in resources/views to render the application's interface. Database Integration: Provides out-of-the-box integration with databases such as MySQL and uses migration to create and modify tables. Model and Controller: The model represents the database entity and the controller processes HTTP requests.

I encountered a tricky problem when developing a small application: the need to quickly integrate a lightweight database operation library. After trying multiple libraries, I found that they either have too much functionality or are not very compatible. Eventually, I found minii/db, a simplified version based on Yii2 that solved my problem perfectly.

The key to installing MySQL elegantly is to add the official MySQL repository. The specific steps are as follows: Download the MySQL official GPG key to prevent phishing attacks. Add MySQL repository file: rpm -Uvh https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm Update yum repository cache: yum update installation MySQL: yum install mysql-server startup MySQL service: systemctl start mysqld set up booting

Article summary: This article provides detailed step-by-step instructions to guide readers on how to easily install the Laravel framework. Laravel is a powerful PHP framework that speeds up the development process of web applications. This tutorial covers the installation process from system requirements to configuring databases and setting up routing. By following these steps, readers can quickly and efficiently lay a solid foundation for their Laravel project.

MySQL and phpMyAdmin are powerful database management tools. 1) MySQL is used to create databases and tables, and to execute DML and SQL queries. 2) phpMyAdmin provides an intuitive interface for database management, table structure management, data operations and user permission management.

Installing MySQL on CentOS involves the following steps: Adding the appropriate MySQL yum source. Execute the yum install mysql-server command to install the MySQL server. Use the mysql_secure_installation command to make security settings, such as setting the root user password. Customize the MySQL configuration file as needed. Tune MySQL parameters and optimize databases for performance.
