I have already installed Apache 2.4.4 & PHP 5.4 from source in my Ubuntu 10.04 machine.
I was setting up a soft link in linux. Here were the steps I followed:
> groupadd mysql
> useradd -g mysql mysql
> cd /usr/local
> gunzip /home/Tim/Download/mysql.....gz | tar xvf -
> ln -s /usr/local/mysql.... mysql
Installing Mysql.
You can download MySQL at http://www.mysql.org/ . Unzip it at the /usr/local/src/. # cd /usr/local/src # tar zxf mysql-5.1.x.tar.gz # cd mysql-5.1.x
To support multilanguage, we set up it as utf8. Also, we set up /usr/local/mysql as a basic directory.
I wanted to install luasql.mysql with luarocks, and I've ran into a problem. Even though the packages were installed providing mysql.h, luarocks couldn't find it.
How I can install mysql in ubuntu 12.04(gnome 3). So that I will have my mysql installation in /usr/bin/mysql
It's library and header files in /usr/lib/mysql and /usr/include/mysql respectively.
Last time I tried sudo apt-get install mysql-server mysql-client mysql-common The mysql has been installed in /usr/bin/mysql.
Hi all,
I installed centos 5, with LAMP.
httpd is working fine, ssh, ftp all working ok.
But, when I try to use mysql its not,
when I give the command
Code:
mysql
I get
Code:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
It seems I have a conflict of mysql versions, one installed with MAMP in the Applications folder and the other installed with brew install mysql2. I created with the mysql related to MAMP, a gitlab mysql user and a gitlabhq_production database. It worked fine.
Suppose now I have a user on my os called 'git'.
I have come to the conclusion that my PHP installation and my MySQL installation are not getting along; I’m working on making my first web page that uses MySQL for content, but after two days, man pages, online documentation, and dozens of tutorials, I just can’t get the PHP/MySQL part to work.
I am trying to change the data directory for mysql in a LAMP setup. The partition that LAMP is installed in cannot support the size of a .sql dump I am trying to import. I have another hardrive with plenty of room on it that I want all the data to live on.
I have changed the datadir to my new directory and moved the /var/lib/mysql folder and content to it.