Can mediawiki use more than one database? My provider has a limit of 6Gb per database. Can I split a 7Gb mediawiki installation over two databases?
Yes, revision text can be moved to a separate DB.
Related
I have approximately 4 GB(34,000) of JPEG files that I need to store in MySQL table. Each image is of different date varying from 1-jan-1961 to 31-dec-2007. How should I store these files such that when I enter the specific date between this time interval the corresponding image appears in my localhost server. The MySQL table has following schema ID, date(that is being entered by the user end), file name, type, size.Is there any way I can upload these files(images) in chunk and not one by one.
Always use mySQL client to do the bulk uploads, You can use the native mysql client or a PHP client. However all these years i didn't have to save a image in MySQL. It is hard to manage and have bad effect on the DB performance.
I recommend you to keep only a file URL in the database and have the files elsewhere, it can be local or some other image host. However with this you need to take care of some stuff of your own
Backing up the images separately when you take MySQL backup, as
images are no longer in DB
Handling transactions and rollbacks
Handling deletes
If you can manage with your code, I suggest you to move your images out form the database
First, PHPMyAdmin is not a good choice for end-user GUI, it's preferably used as SQL Web client for DB developers and administrators.
Second, you should not use MySQL to store images, SQL manipulation of big data blobs is quite inefficient compared to direct filesystem access. This point has been debated many times on this site :
Can I store images in MySQL
Images in MySQL
Storing images in MySQL
Storing Images in DB - Yea or Nay?
etc.
You should instead :
use any file transfer command to upload all your files to your web server: rsync, scp, ftp, etc. I'd recommend rsync for further updates and syncing.
use any server side scripting language (PHP, Python, etc.) to parse your uploaded files and reference them in a metadata only table
build a simple HTML GUI with the same language to give access to the wanted images.
Hope it helps.
Where can I find the location of my database on Windows 8 after I created my database in the mySql workbench?
I need the file of the database itself, on internet people talk about the ".frm" files but those are only the tables of the whole database.
Is there actually such an file or do I have to work with the tables files?
There is no singular file that represents the database. MySQL typically has many different files that store the various bits of information that comprise your table.
Even the creaky, antiquated MyISAM database stores index data and row data in separate files per table. InnoDB generally stores all data for all databases in a series of files in the main MySQL data directory, but it can be configured to break those out better into separate files.
No matter how you slice it, there's no way to get your MySQL data into a single file without using the mysqldump tool.
I have a mysql database on server A, a postgres database on server B and another mysql database on server C. I need a way to join tables from the three servers to get a combined result. Is there a way to do this in ruby ? If not ruby any other language will also suffice.
I need to join somewhere around a few 1000 rows of data. The joined data needs to get pushed to elasticsearch. I was going to use the _bulk api in elasticsearch to push it.
If it's a one-off, just download the data from two of the DBs and upload it to the third. Do your work there.
If it's a regular thing it might be worthwhile putting the effort into linking the databases properly. PostgreSQL offers Foreign Data Wrapper plugins that let you talk to a different database (PostgreSQL or others). One is the mysql_fdw.
You define entries for each remote server, user mappings between local user and the remote user, and then describe each table to access. After that you can treat them as local (although performance will generally be much worse of course).
In theory you could write your own fdw plugin to link to elasticsearch too but there doesn't seem to be one currently available.
You can do it by LINQ and Entity Framework in Microsoft .Net
I'd like to populate the MySQL timezone tables with the database provided by MySQL. I am using a cloud DB and can't overwrite DB tables and restart the server.
Can someone help me understand how to load these files manually?
Rational
I loaded the tz tables from the OS, but the OS has a ton of timezone names. I'd like a more concise set of names that I can query for forms. I think the set provided by MySQL might be a better fit. No other apps are running on the database, thus timezone conflicts aren't an issue.
The database provided by mysql comes as a bunch of myISAM container files; I don't think you're going to be able to safely drop them into the mysql data base directory without bouncing your mysqld.
Do you own this mysqld, or are you one of many tenants in a vendor-owned system?
If you own it, you can load a subset of the /usr/share/zoneinfo time zones. A useful subset might be /usr/share/zoneinfo/posix.
If you're using the mysql.time_zone_name.Name to populate a pick list (a good use for it) you could select an appropriate subset of the admittedly enormous list of names,
or create some aliases right in that table.
I ended up loading the tables into a SQL server on my on local machine, then exporting insert statements and manually loading those onto the server for which I don't have direct control of. Not a glamors solution, it it appears to be the only reasonable way to go about it.
If I recall correctly, there where at least to desktop programas from sun which were very useful for handling mysql databases...
Now, all I can find is some mysql workbench which is only useful for designing data...
Both programs I'm talking about allowed you to manage servers, create database, create tables, index, perform querys, edit data, etc...
unfortunately I don't even recall their names...
Any idea where I can find them?
thanks a lot
Are you talking about MySQL GUI Tools?
They represent a set of applications for the administration of MySQL database servers, and for building and manipulating the data within MySQL databases.