why is it so?

after getting the new system up, it is slowly time to get back things i usually use in my last workstation. So LAMP is definitely something i will need. But something hasn't change since long ago - the installation process.

if you need to get php5 running on your system with mysql support, you will automatically think the following is enough

$ sudo apt-get install php5-mysql

since apt-get should be smart enough to get the necessary packages needed for it. True indeed. It cleverly fetch apache2 and other needed packages - except one - mysql-server. I have no idea why. Perhaps there is a good reason behind this, but i would think when i install php5-mysql, it does tell that i need at least apache2, php5-common and mysql-server to get things work. So tell me why is mysql server not automatically choosen?

time to move on. perhaps it is just because i am a newbie, after all :) sudo apt-get install mysql-server is just another 30 characters anyway, right? :) 

: Thanks for your votes!

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

well, php5-mysql doesn't

well, php5-mysql doesn't need to depend on mysql-server for the sole purpose that you could be connecting to a *remote* database. it does however, depend on php5-common.

(if you reply to this, ping me on IM)

still...

one can also connect to a local database, right? why not just an option to ask whether should mysql-server to be installed automatically later?

just for noobs like me at least ;)

you're misunderstanding the

you're misunderstanding the requirements. what you might find useful is tasks or groupinstalls, like the "lamp-server" option

in fedora, yum supports groups. in debian, consider using tasksel, and installing the lamp server option

by your logic though, if i asked to install OpenOffice.org, and because Base supports connecting to other databases like mysql, should the system also then install mysql-server when I install OpenOffice.org? Probably not...

Amarok is another good example. It supports back-end DBs and its own embedded sqlite3. By default it uses sqlite3. Are you saying when I install amarok, I should also install mysql/pgsql servers? I don't think so

i got the point now

but if i want Amarok with mysql support, wouldn't it be nice to at least ask me then leaving me in the dark wondering why is it not installed, semi-automatically? ;)

php5-mysql is not just something that allows to connect to different database server, but MYSQL server. so naturally installing a local mysql-server should be a possible/viable option? still, your explanation cleared things up already, so i will not argue tru and demand for the change tomorrow. i can live with it, and thanks for the tasksel tip - that is what we want actually.

thanks :)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.