While that appears to make sense, it actually doesn't. The thing is that the MySQL server on the B3 doesn't even expose itself, so you have to be running a process on the B3 itself to be able to access any database that is provided by this server. Also the B3 is not your typical high end machine where you would host a multi-user database and it would therefore make more sense to direct applications on the B3 to use an outside server than to enable outside access to MySQL on the B3.elsbernd wrote: I'm a sysadmin for non-linux and non-windows systems. But within the company I work for, there is no such database system having no passwords. Never. And we're behind a firewall and we trust (ähm) all our users. So it's good practice to have a password on all data-systems.
And besides you already know that setting a password on the MySQL root account breaks the regular update/upgrade routine on the B3 and requires you to do the updates from console so that you can respond to interactions that are not handled by the web interface.
Really?elsbernd wrote:The installer tries to upgrade the existing database abd fails with the error messagI had toCode: Select all
mysql said: ERROR 1060 (42S21) at line 1: Duplicate column name 'created'
then the installation ofCode: Select all
alter table image drop created ; drop index last_activity_idx on sessions;
runs through.Code: Select all
apt-get install bubba-album
Thanks again, I learned much more about b3.
What I think is that your system is f*cked up. What you said is that you forcibly removed bubba-album, but the installer still wanted to do updates to a database that didn't exist. In other words: according to the installer you were upgrading from a previous version. You could say that the installer is kind of dumn this way, because it doesn't check if anyone deleted the database at some point. Second strange thing is that even though you had removed the package bubba-album, you apparently still had the SQL script to create the tables for the bubba-album database, which is part of that package and should have been gone as well. And so now you reinstalled the package and again it thought it was running as an upgrade, so there must have been some kind of version stamping still around, and tried to make changes to a database that was created with the correct layout already and therefore again causing errors while creating duplicate entries.
I told someone else and I'm telling you now: if you make changes to the system make sure not to conflict with (the behaviour of) core Bubba components. Work around them or take precautions so that the changes become unnoticed to these packages. In your case: add the .my.cnf file to (the root only readable) /root (chmod the file to 600 to make sure) - do note that the password that you assign to the MySQL root doesn't have to be the same as the one for root/admin/administrator anywhere else on the network.