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

MySQL is an open source relational database management system, mainly used to store and retrieve data quickly and reliably. Its working principle includes client requests, query resolution, execution of queries and return results. Examples of usage include creating tables, inserting and querying data, and advanced features such as JOIN operations. Common errors involve SQL syntax, data types, and permissions, and optimization suggestions include the use of indexes, optimized queries, and partitioning of tables.

MySQL's position in databases and programming is very important. It is an open source relational database management system that is widely used in various application scenarios. 1) MySQL provides efficient data storage, organization and retrieval functions, supporting Web, mobile and enterprise-level systems. 2) It uses a client-server architecture, supports multiple storage engines and index optimization. 3) Basic usages include creating tables and inserting data, and advanced usages involve multi-table JOINs and complex queries. 4) Frequently asked questions such as SQL syntax errors and performance issues can be debugged through the EXPLAIN command and slow query log. 5) Performance optimization methods include rational use of indexes, optimized query and use of caches. Best practices include using transactions and PreparedStatemen

Apache connects to a database requires the following steps: Install the database driver. Configure the web.xml file to create a connection pool. Create a JDBC data source and specify the connection settings. Use the JDBC API to access the database from Java code, including getting connections, creating statements, binding parameters, executing queries or updates, and processing results.

MySQL is chosen for its performance, reliability, ease of use, and community support. 1.MySQL provides efficient data storage and retrieval functions, supporting multiple data types and advanced query operations. 2. Adopt client-server architecture and multiple storage engines to support transaction and query optimization. 3. Easy to use, supports a variety of operating systems and programming languages. 4. Have strong community support and provide rich resources and solutions.

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

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.

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.

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
