I have a PHP application that I want to switch from MySQL to Cache DB. I was wondering if I could somehow use a JDBC connection since Cache doesn't come with a PHP connection?
Thanks
Hi:
I'd like to update values in one table based on corresponding values from other tables. Say you want to update prices of pieces provided by one specific manufacturer whose name is in the table Manufacturers with the Pieces table containing only the id of the manufacturer.
I've seen several solutions for MySQL here and for MS SQL Server here but none of them seems to work in SQLite.
Any suggestion?
Could you please give me some suggestions on how to parse HTML in Perl? I plan to parse the keywords(including URL links) and save them to a MySQL database. I am using Windows XP.
Also, do I first need to download some website pages to the local hard drive with some offline Explorer tool? If I do, could you point me to a good download tool?
on my rails(2.3.5) app(currently 50-70rpm, maximum response time around 0.7s), uploading even 700k file(using paperclip plugin) locks up the server for web requests for everyone for 2 minutes! (other apps on same server work normally)
does anyone have a clue why that might be happening? i am using some mysql transactions which lock the database also if that might be an issue
i read http://www.therailsway.com/2009/4/23/uploading-files
but it couldn't be locking server for 2 minutes for a small file, could it?!
Client Environment : Windows XP , Internet connection Available, PHP Not installed.
Server Environment : CentOS , Internet connection Available, PHP , MYsql installed.
Data are stored in files at client machine , suggest better ways to send data fetched from the file to the server. Normally i would be using HTTP request using Curl to send the data to the server but client machine doesnt have php installed.
What all are the ways to send data to the server and the comparisons?
I just want to know that if there is a simple way of judging what kind of apps can perform better on multi-core cpu? Such as Memcached, redis, MySQL, Cassandra and so on.
I'm creating an email generator system. I'm creating some clases and I'm trying to make things right.
By the time, I have created 5 classes. Look at the class diagram:
I'm going to explain you each one.
Person. It's not a big deal. Just have two constructors: Person(fname, lname1, lname2) and Person(token, fname, lname1, lname2). Note that email property stays without value.
StringGenerator. This is a static class and it has only a public function: Generate. The function receives a Person class and it will return a list of patterns for the email.
MySql. It contains all the necessary to connect to a database.
Database. This class inherits from MySql class. It has particular functions for the database.
This gets all the registries from a table (function GetPeople) and return a List. Each person from the list contains all data except Email.
Also it can add records (List but this must contains an available email). An available email is when an email doesn't have another person. For that reason, I have a method named ExistsEmail.
Container. This is the class which is causing me some problems. It's like a temporary container. It supposed to have a people list from GetPeople (in Database class) and for each person it adds, it must generate a list of possible names (StringGenerator.Generate), then it selects one of the list and it must check out if exists in the database or in the same container.
As I told above this is temporal, it may none of the possible emails is available. So the user can modify or enter a custom email available and update the list in this container. When all the email's people are available, it sends a list to add in the database,
It must have a Flush method, to insert all the people in the database.
I'm trying to design correct class. I need a little help to improve or edite the classes, because I want to separate the logic and visual, and learn of you.
I hope you've been able to understand me. Any question or doubt, please let me know.
Anyway, I attached the solution here to better understand it: http://www.megaupload.com/?d=D94FH8GZ
I'm trying to access the download for oracle XE on windows but it fails with 404 error.
Is Oracle leveraging its possession of mysql or is it a temporarily error?
A colleague of mine sets reference to null in finally blocks. I think this is nonsense.
public Something getSomething() {
JDBCConnection jdbc=null;
try {
jdbc=JDBCManager.getConnection(JDBCTypes.MYSQL);
}
finally {
JDBCManager.free(jdbc);
jdbc=null; // <-- Useful or not?
}
}
What do you think of it?
My script runs fine when I execute it from outside the application (terminal), but when its called from inside the C++ application it shuts down in the require("luasql.mysql") call.
Can anyone help?
Hi there
If your planing to build an application but you don't have enough data to fill a database, how you will generate some ?
Do you know any application which can generate data based on some criterias and export it later in MySQL database?
Thanks :)
I'm joining a start up and there's a debate on which platform we should choose for our development; Mac, Linux or Windows?
We're gonna use mainly open source tools and languages like, ruby, rails, PHP and mysql and photoshop (or something equivalent on Linux) for design.
I suggested mac but they challenged me to be more persuasive. what's your idea?
Help me with your persuasive arguments please.
When I launch the web console, I get page can not be displayed error.
What I have tried so far:
I have re-installed DS about 7 times, and each time, I get same errors.
I added entries in etc/hosts file for local host and my host name.
I have turned off firewall.
My hardware/software setup.
My host system is window8.1.
My vmware workstation is 7.
The guest os is windows 7 enterprise x64.
I have installed 10g, and given dba role to public.
I have installed VS 5, and ms visual c++ 2010 express.
I have installed msxml.
IE version is 10.
Firewall is off.
My internet works fine
It passed all the DS requirement tests and install completed successfully. When I launch my vmware guest instance, I do get SQL5000c error upon boot which I have tried to ignore in some installs and in some, I used db2systray -clean command to get rid of it. But that has not helped solve the webconsole connect failure to my host. I have spent over 2 weeks exclusively on this issue and badly need some help.
Hi all, in Firebird the only way to have an auto increment coloumn is to setup a generator and use it with a trigger.
In H2 db there are auto_increment and identity keywords to do it.
What is the best way?
Mysql use auto_increment too, but there is some problems with cuncurrence read and table lock, isn't true?
Thank you.
how to create setup of database. I have windows application in c#.net i am able to create setup of my application in vs2008 but i want to create my MySql database server setup for multiple clients of my application. Please help me...
I use phpmyadmin to create mysql database. And I have set the auth type to cookie in the config.inc.php.
How do I change the time limit so that even if I logged in I stayed idle for hours it won't require me to log in again.
I would need it to allow me to host subdomains and multiple domains is a huge plus.
Required:
ASP.NET 2.0, 3.0, 3.5
Subdomain Hosting
MS-SQL & MySQL Databases
Want
Multiple Domain Hosting
ASP.NET 4.0
Ability to directly connect to MS SQL using SQL SMS
I have turkish character problem in mysql database when adding content with tinymce from admin panel.
Charset is:
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-9"" />
It accurs when add content in text area with tynymce. How can I solve this?
Thanks in advance
Is there any way to convert differential backup to SQL statements which will produce identical results when applied?
Or any other solution similar to binary log in MySQL?
I have a list containing a tuples and long integers the list looks like this:
table = [(1L,), (1L,), (1L,), (2L,), (2L,), (2L,), (3L,), (3L,)]
How do i convert the table to look like a formal list?
so the output would be:
table = ['1','1','1','2','2','2','3','3']
For information purposes the data was obtained from a mysql database.
Hi
I am trying to create a plugin for dotCMS. My plugin stores data in database. i defined hibernate mapping file and put in my plugin folder's conf dir and i have no idea how to hibernate generate models based my mapping definition. I am using hello world plugin's mapping file for mysql
Any help or comment would be highly appreciated
Thanks in advance
I seem to keep running into little tidbits that help drastically in different areas of different languages.
For instance, a few days ago I learned about EXPLAIN SELECT... for any MySQL query that seems to be going slow. It took my 196 second query to 0.0084 seconds.
I want this SQL query to be written in rails controller using find
select id,name from questions where id not in (select question_id from levels_questions where level_id=15)
How will I do this?I am using Rails framework and MySQL db
thanks in advance.