So i tryed to download mysql to my dedicated Linux Ubuntu server. But i want to downloade it using "yum install mysql mysql-server", like on CentOS 6.5. But how to make Yum, work propely, and if anyone could help via steam or teamspeak then please say.. =)

Dani AI

Generated

Short, practical summary (builds on ): Ubuntu is Debian-based and uses APT (not yum). Use the apt-family tools to find and inspect packages, then install the server package provided for your Ubuntu release. To see what MySQL-related packages are present on the system run a quick package check, for example:

dpkg -l | grep -i mysql

This shows installed MySQL/MariaDB packages and versions. ()

What mysql-common is and why it was suggested: mysql-common is a tiny package that supplies shared configuration files (for example /etc/mysql/my.cnf) and client-library defaults used by server and client packages; it’s required by the other MySQL packages so the package manager pulls it in. If you want the distro-provided MySQL that integrates cleanly with Ubuntu, stick with the repository package; if you need Oracle’s newest MySQL builds, use the official MySQL APT repository instead. To inspect what mysql-common installed:

dpkg -L mysql-common

(packages.ubuntu.com)

How to start / enable the server (Ubuntu varies by version): first detect the init system:

ps -p 1 -o comm=

If PID 1 is systemd, use systemctl; if not, use the older service/update-rc.d/upstart commands. Typical examples:

# systemd systems
sudo systemctl start mysql
sudo systemctl enable mysql
sudo systemctl status mysql

# older systems (Upstart / SysV compatibility)
sudo service mysql start
sudo update-rc.d mysql defaults

Note package naming differences: Debian/Ubuntu generally use the service name mysql (not mysqld), but confirm with systemctl list-units --type=service | grep -i mysql. (wiki.ubuntu.com)

Quick post-install and troubleshooting tips: run the MySQL post-install hardening tool, check service status and journal for errors, and inspect the server error log:

sudo mysql_secure_installation
sudo journalctl -u mysql --since "1 hour ago"
sudo tail -n 200 /var/log/mysql/error.log

If the service fails to start, systemctl status mysql and the journal output usually show the root cause (missing dirs, permissions, or config errors). (dev.mysql.com)

This complements ’ apt-based direction and focuses on service names, init differences, and what mysql-common actually provides.

Recommended Answers

All 8 Replies

In ubuntu one uses apt-get instead of yum.

I often use aptitude because of the search command

sudo apt-get install aptitude

Now search packages related to mysql

sudo aptitude search mysql

Install what you want

sudo apt-get install mysql-common
sudo apt-get install mysql-server

Thanks alot, can i add you on something??? And i need a good Javascript/HTML/PHP/CSS Coder can you help? I gonna pay...

But what does the mysql-common download do?

And how to start the service (Mysql). Like on centOS "chkconfig --levels 235 mysqld on" "/etc/init.d/mysqld start". ? =)

Here is an . Sorry I can't help finding a good Javascript/HTML/PHP/CSS Coder. I'm mostly a python coder.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.