Showing entries 21853 to 21862 of 44047
« 10 Newer Entries | 10 Older Entries »
Comment on First Contact – VFP/MYSQL interaction by Raymond L.

I was fumbling with this myself, and found excellent information about the various ODBC command options you can use with MySQL here:
http://dev.mysql.com/doc/refman/5.0/en/connector-odbc-configuration-connection-parameters.html

You can use DSN-less connections by setting up and storing a connection string such as:
m.cConnStr = “Driver={MySQL ODBC 5.1 Driver};Server=www.yourserver.com;Port=3306;Database=yourdatabase;User=yourmysqluser;Password=yourmysqlpassword;Option=67108864″

and the last parameter, “Option” you would set to a number that is the sum of the values of each option you want to enable (enumerated on the above link).

Once you have your SQL connection string correct and including the options you want, simply pass that connection string to VFP’s SQLSTRINGCONNECT …

[Read more]
Log Buffer #203, A Carnival of the Vanities for DBAs

Welcome to Log Buffer. The weekly roundup of posts, and news of what’s happening in the database world.

At Pythian, we’re pretty much recovered from a hectic Oracle OpenWorld 2010, and I’m no longer an OOW virgin. What an experience! I had the pleasure of meeting many of you Log Buffer readers and contributors at the Annual Blogger’s Meetup at Jillian’s. Great to put faces to names. And I now officially feel like “Vanessa from Log Buffer”, as many of your t-shirts will show.

Many thanks to Marc Fielding for providing the hot items for this week’s post, in …

[Read more]
Determining the MySQL Enterprise Monitor (MEM) Version from the Command Line

Surprisingly, obtaining the version of the MySQL Enterprise Monitor from the command line is not as obvious as one woud think. Generally, with most MySQL programs, you can use the –version option passed to the program to obtain this information (such as you can with the mysqld, the MEM agent, and MySQL proxy).

I realize this is not too common of a problem, but hopefully this will help someone out there.

There is a version.sh (Linux) and version.bat (Windows) included in /opt/mysql/enterprise/monitor/apache-tomcat/bin, which will output everything but the MEM version:

root@chris-linux:/opt/mysql/enterprise/monitor/apache-tomcat/bin# ./version.sh
Using CATALINA_BASE:   /opt/mysql/enterprise/monitor/apache-tomcat
Using CATALINA_HOME:   /opt/mysql/enterprise/monitor/apache-tomcat
Using CATALINA_TMPDIR: /opt/mysql/enterprise/monitor/apache-tomcat/temp
Using JRE_HOME:       /opt/mysql/enterprise/monitor/java
Server version: Apache …
[Read more]
MariaDB 5.2.2-gamma is released

MariaDB 5.2.2-gamma is released

MariaDB 5.2 is finally released as gamma (RC). I had hoped to release this in July at Oscon but our new QA person, Philip Stoev, find at the last moment some problems with Aria recovery and virtual columns that we wanted to fix before doing the release.

The new features in 5.2 are quite isolated and as most have been in use by members in the MySQL community for a long time, we don't expect any big problems with 5.2 and we should be able to declare it stable within a few months.

5.2.2 gamma is based on MariaDB/MySQL version 5.1.50. It has the following new features:

Virtual columns
Columns that are an expression and are calculated on retrieval.
[Read more]
Migrating from MySQL to Drizzle

One of Drizzle’s great strengths is that it is not afraid to deviate from its MySQL origins.  Unfortunately the side-effect of this is that it can make migration from MySQL to Drizzle more difficult.  I have previous noted that drizzledump can do the schema migration for you.  Now I will go into more details with some other information that may be useful if you are considering migration.

The first thing I should point out is that the default storage engine in Drizzle in InnoDB, MyISAM exists only for temporary tables and we have some other options such as PBXT and BlitzDB.  As a kind-of side effect to this, there is no FULLTEXT indexes in Drizzle, so these have to be dropped as part of the migration.

When it comes to integer types we …

[Read more]
Database speed tests (mysql and postgresql) - part 3 - code

Here is the code structure

dbfuncs.php : is the file which contains classes and functions for firing queries on mysql and pgsql mysqlinsert.php : creates and fires inserts on mysql mysqlselect.php : creates and fires selects on mysql pgsqlinsert.php : creates and fires inserts on pgsql pgsqlselect.php : creates and fires selects on pgsql benchmark.php : script used to control concurrency and

Open DB Conference Roundup

There are a few things to note RIGHT NOW for those of us in the world of open databases.

The MySQL User Conference has opened their call for proposals and the IOUG Collaborate11 call for proposals closes tomorrow 10/1!  Get your proposals in.

OpenSQLCamp is 10/15 -> 17 and BG is sending Patrick as I mentioned earlier this week.  If you’re in the area, I can’t urge you strongly enough to go listen, present what you’re working on, learn and get help from some amazing people doing really cool things on and in open databases.  It’s an un-conference format that has always had incredibly informative sessions.  I’ve attended the conference a few times, and came away with new ideas and solution each time.  …

[Read more]
A funny recipe.

According to a recent book about MySQL, this is the recipe to convert an IP address into an integer, with the purpose of using it as server-ID.

  1. Take for example 10.0.159.22
  2. Using a calculator (!!!), convert each of the four numbers to hexadecimal (you get 0a.00.9f.16)
  3. Then glue the four hexadecimal numbers together, after removing the dots, and, again with the calculator, convert them to decimal (0a009f16HEX=167812886DEC)
  4. Use this number (167812886) as your server ID in the options file.

Brilliant, eh?

Had the authors searched the MySQL manual for "IP address", they would have found the INET_ATON function, which can be used like this:

select inet_aton('10.0.159.22'); …
[Read more]
OLAP in MySQL: four ways to filter on higher level dimensions

Answering questions asked on the site.

Denis Kuzmenok asks:

I need some help with a query I'm fighting with.

I have these tables:

id parent name
id region name
id product site value

For the products with a certain product.parent, I need to select minimal and maximal price within the given site.region, and return first 10 products ordered by the minimal price.

Each parent has 100 to 10,000 products, and there are 10,000,000 records in price

[Read more]
OpenOffice and MySQL Support

The Motley Fool had an interesting article yesterday about the OpenOffice spinoff, and what the impact to the open source community is starting to look like since the Oracle acquisition. While I’m not sure whether Anders has a crystal ball or is just consulting a magic 8 ball, I I’m sure it’s concerning to people to wonder what the support for MySQL will look like in the future.  I think there are some promising opportunities out there that might help relieve some of these anxieties.

The best resource the MySQL community has at its disposal is the same as it’s always been: fellow users. The ability to learn from the experience of other users and collaborate on how to make things better is the cornerstone of open source. This is true for customers running the Oracle stack as well. Oracle user groups …

[Read more]
Showing entries 21853 to 21862 of 44047
« 10 Newer Entries | 10 Older Entries »