如何从软件源安装MySQL 5.1到Ubuntu 12.04服务器

3

我需要在Ubuntu服务器上安装MySQL 5.1。我看到其他问题中建议使用 deb http://packages.dotdeb.org lenny all, 但是它并没有起作用。是否有其他仓库可用?


这个问题似乎不适合讨论,因为它涉及到安装软件。 - Flexo
1个回答

1
尝试这个。
#!/bin/bash

set -e

cd ~/
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.65.tar.gz
tar -zxf mysql-5.1.65.tar.gz
cd mysql-5.1.65
./configure  '--prefix=/usr' '--exec-prefix=/usr' '--libexecdir=/usr/sbin' '--datadir=/usr/share' '--localstatedir=/var/lib/mysql' '--includedir=/usr/include' '--infodir=/usr/share/info' '--mandir=/usr/share/man' '--with-system-type=debian-linux-gnu' '--enable-shared' '--enable-static' '--enable-thread-safe-client' '--enable-assembler' '--enable-local-infile' '--with-fast-mutexes' '--with-big-tables' '--with-unix-socket-path=/var/run/mysqld/mysqld.sock' '--with-mysqld-user=mysql' '--with-libwrap' '--without-readline' '--with-ssl' '--without-docs' '--with-extra-charsets=all' '--with-plugins=max' '--with-embedded-server' '--with-embedded-privilege-control'
make
sudo make install

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接