In versions earlier than Ubuntu 12.04, It is very convenient to configure the MySQL database. You only need to run three commands:
Sudo apt-get install mysql-server
Sudo apt-get install mysql-admin
Sudo apt-get install mysql-query-browser
Ubuntu
The installation of the MySQL-Proxy binary version is relatively simple, and does not need to be repeated. The following describes how to install the source code for Linux:
Install pkg-config:
Tar zxvf pkg-config-0.23.tar.gz
Cd
[Root @ Oracle9i mysql] # cp support-files/mysql. server/etc/init. d/mysql[Root @ oracle9i mysql] # chmod + x/etc/init. d/mysql[Root @ oracle9i etc] # chkconfig -- list mysqlService mysql supports chkconfig, but is not referenced in any runlevel
Document directory
Context Configuration
Web. xml configuration
Refer$CATALINA_BASE
/Webapps/docs/jndi-datasource-examples-howto.html
Context Configuration
Configure the JNDI datasource in Tomcat by adding a declaration for yourResource to
1. Install MySQL in Linux
The rpm file is a software installation package developed by Red Hat. rpm frees Linux from complicated procedures when installing software packages. The frequently used parameter of this command during installation is-ivh,
To build a java web development environment on the latest Ubuntu8.04 and install myeclipse, I will not repeat the specific installation methods of the two eclipse software, because there are many online applications. For eclipse and myeclipse, it is
Install and configure mysqlmysql-javasware-3.22-win.zip installed in C: mysql to C: mysql under the my-example.cnfcopytoC: my. cnf file # basedird:/mysql/changed to basedirc:/mysql/put c: windowsphp3.ini in extensionphp3 _
Install and configure
The operation is very simple, on the 5 steps, as follows: 1 to enter mysql: usrlocalmysqlbinmysql-uroot-p2 using mysql database: usemysql; 3 to view the User table: SELECT 'host', 'user' FROMuser; 4. update the user table: The U operation is very
Originally, it was easy to configure the mysql database in the Django1.7 + python2.78 + pycharm environment. as a result, I found that there were many problems, record the final configuration result here. For more information about how to configure
In the CentOS system, the firewall blocks port 3306 by default. to access the mysql database, we need this port. the command is as follows: /sbin/iptables-IINPUT-ptcp -- dport3036-jACCEPT we need to save our operation, command:/etc/rc. d/init.
1. add the configuration information in $ CATALINA_HOMEconfserver.xml and declare the specific information of the connection pool. the added content is as follows :! -- Declare the connection pool -- ResourcenamejdbcmysqlauthContainertypejavax. SQL.
PHP correctly configures mysql (apache environment ). Write a php file to test mysql as follows: Copy the code as follows :? Php $ linkmysql_connect (localhost, root, root); if (! $ Link) echo failed !; Elseecho successful !; Mysql_cl writes a php
1 to the official website to download the MySQL decompression version, and then extract mysql to any Path, this example is placed in: D: ProgramFilesmysql-advanced-5614-win322 to set the environment variables, in the system variable Path to add:; D:
For example, if you configure the mysql environment variable window7 in windows, right-click "computer"-click "properties"-click "Advanced System Settings"-click "environment variable". The following figure shows the configuration:
<>
Run the following command to install MySQL in Ubuntu: sudoapt-getinstallmysql-serverMySQL initial configuration and management start MySQLmysqlstart: mysqld is the mysql daemon to check whether mysql is started: ps-ef | Common commands in
1. Installing the MySQLrpm file in Linux is a software installation package developed by RedHat. rpm frees Linux from complicated procedures when installing the software package. This command is often used during installation.
1. Installing MySQL
Segmentfault Virgin asked, younger brother just contact Yii framework, want to ask the next YII framework how to configure the long connection MySQL. If you cannot configure where to change the long connection of PDO, thank you very much!
Reply
Run rpm-Qa | grep MySQL to check whether MySQL is installed in the system. The result is as follows:
Php-mysql-5.2.6-5.i386
Mysql-libs-5.0.67-2.fc10.i386
I think this result may indicate that the mysql client has been installed in the system,
LinuxLowerMySQLInstallation and configuration
MySQL
Installation
MySQLInstallation is relatively simple becauseSambaSo you can directly put the content to be installed in the system,
Use it directly. (The files
Because SAE supports Mysql, first we need to configure a local Mysql environment, I find mysql-python-1.2.4b4.win32-py2.7.exe on the Internet, and double-click to install
Select a typical Installation
After the installation is complete, the page
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.