Home |  MySQL Buzz |  FAQ |  Feeds |  Submit your blog feed |  Feedback |  Archive |  Aggregate feed RSS 2.0 English Deutsch Español Français Italiano 日本語 Русский Português 中文
Showing entries 1 to 30 of 30

Displaying posts with tag: tutorial (reset)

Installing and administering Tungsten Replicator - Part 2 : advanced
+2 Vote Up -0Vote Down

Switching roles

To get a taste of the power of Tungsten Replicator, we will show how to switch roles. This is a controlled operation (as opposed to fail-over), where we can decide when to switch and which nodes are involved.

In our topology, host1 is the master, and we have three slaves. We can either ask for a switch and let the script select the first available slave, or tell the script which slave should be promoted. The script will show us the steps needed to perform the operation.

IMPORTANT! Please note that this operation is not risk free. Tungsten replicator is a simple replication system, not a complete management tool like Continuent Tungsten. WIth the replicator, you must make sure that the applications have stopped writing to the master before starting the switch, and then you

  [Read more...]
Installing and Administering Tungsten Replicator - Part 1 - basics
+2 Vote Up -0Vote Down

Intro

Tungsten Replicator is an open source tool that does high performance replication across database servers. It was designed to replace MySQL replication, although it also supports replication from and to Oracle and other systems. In this article, we will only cover MySQL replication, both simple and multi-master.

Preparing for installation

To follow the material in this article, you will need a recent build of Tungsten Replicator. You can get the latest ones from http://bit.ly/tr20_builds. In this article, we are using build 2.0.8-167.

Before starting any installation, you should make sure that you have satisfied all the prerequisites. Don't

  [Read more...]
MySQL Cluster Tutorial: NoSQL JavaScript Connector for Node.js
Employee_Team +4 Vote Up -0Vote Down

This tutorial has been authored by Craig Russell and JD Duncan

The MySQL Cluster team are working on a new NoSQL JavaScript connector for MySQL. The objectives are simplicity and high performance for JavaScript users:

- allows end-to-end JavaScript development, from the browser to the server and now to the world's most popular open source database

- native "NoSQL" access to the storage layer without going first through SQL transformations and parsing.

Node.js is a complete web platform built around JavaScript designed to deliver millions of client connections on commodity hardware. With the MySQL NoSQL Connector for JavaScript, Node.js users can easily add data access and persistence to their web, cloud, social and

  [Read more...]
Flexible Fail-over Policies Using MySQL and Global Transaction Identifiers
Employee +1 Vote Up -0Vote Down
<< Previous Post: Advanced use of Global Transaction Identifiers

As we saw in my previous posts, Global Transaction Identifiers in MySQL 5.6 allow you to change the replication topology arbitrarily. You don't even need to specify the positions in the replication stream – when you turn on auto-positioning, the master automatically sends only those transactions that are missing on the slave.

When you do a fail-over, you want to make sure that the new master is up-to-date. For instance, consider the following scenario:





  [Read more...]
Sessions at Percona Live MySQL Conference 2013: fun, competition, novelties, and a free pass
+3 Vote Up -0Vote Down

The Percona Live MySQL Conference and Expo 2013 is almost 1 month away. It's time to start planning, set the expectations, and decide what to attend. This post will give a roundup of some of the sessions that I recommend attending and I look forward to.

First, the unexpected!

After much talk and disbelief, here they come! Oracle (http://www.mysql.com) engineers will participate to the Percona Live conference. This is wonderful! Their participation was requested by the organizers, by the attendees, and by community advocates, who all told the Oracle management how important it is to be in this conference. Finally, they have

  [Read more...]
Installing a driver for Microsoft SQL Server and Sybase ASE in Linux and Mac
Employee_Team +3 Vote Up -0Vote Down

In a recent post we showed you how to migrate a SQL Server database to MySQL. There, we used the oficial Microsoft ODBC driver and that’s OK if you are running MySQL Workbench in Windows. But what if your desktop OS is some Linux variant or Mac OS X?

It turns out that Microsoft has recently released an ODBC driver for Linux. However, you can’t use this driver with MySQL Workbench for Linux. (Actually you can, but you would have to rebuild Workbench). The main reason is that this ODBC driver was linked against unixODBC (an ODBC driver manager), while Workbench uses another ODBC driver manager: iODBC and the two of them

  [Read more...]
MySQL 5.6 Replication: New Resources for Database Scaling and HA
Employee_Team +8 Vote Up -0Vote Down
MySQL 5.6 reached GA (General Availability) today and is packed with a wealth of new features and capabilities.  Exciting stuff!
MySQL 5.6 also introduces the largest set of enhancements to replication ever delivered in a single release, including: - 5x higher performance to improve consistency across a cluster and reduce the risks of data loss in the event of a master failing - Self-healing clusters with automatic failover and recovery from outages or planned maintenance - Assured data integrity with checksums implemented across the replication workflow - DevOps automation
Of course, getting started with all of these enhancements can be a challenge - whether you are new to MySQL replication or an experienced user. So two new Guides are available to help take advantage of

  [Read more...]
Solving replication problems with Tungsten replicator
+1 Vote Up -0Vote Down

On Monday afternoon, Neal Armitage and I will be speaking at Percona Live in London. It will be a three hours tutorial about Tungsten replicator.

The contents of this tutorial are mostly new. We have released recently a new and easier way of installing different topologies, in the shape of cookbook scripts, which are distributed with the replicator tarball.

Using this cookbook, any user can simply install multiple topologies, from the simple master/slave to all-masters, fan-in, and star.

There are recipes for showing the replication cluster, switching roles between master and a chosen slave, taking over MySQL replication, installing direct slaves with parallel replication, testing each topology, and

  [Read more...]
How-To: Migrate PostgreSQL databases to MySQL using the MySQL Workbench Migration Wizard
Employee_Team +6 Vote Up -0Vote Down

MySQL Workbench 5.2.41 introduced the new Migration Wizard module. This module allows you to easily and quickly migrate databases from various RDBMS products to MySQL. As of Workbench 5.2.44 you can migrate databases from Microsoft SQL Server, PostgreSQL and Sybase Adaptive Server Enterprise. It also provides for generic migrations, i.e. migrations from other RDBMSes that are not explicitely supported, provided that they have a well behaved ODBC driver. More on this in an upcoming post…

Additionally, you can use the Migration Wizard to perform MySQL to MySQL database migrations, which can be used for tasks such as copying a database across servers or migrating data across different versions of MySQL.

We have already described in a previous post how to use the

  [Read more...]
Advanced use of Global Transaction Identifiers
Employee +3 Vote Up -0Vote Down

Details of Re-execution and Empty Transactions

<< Previous post: Failover and Flexible Replication Topologies in MySQL 5.6
Next post: Flexible Fail-over Policies Using MySQL and Global Transaction Identifiers >>

This post was kindly translated to Japanese by Ryusuke Kajiyama.

In my previous post, we saw how GTIDs are generated and propagated, we described the new replication protocol, and we saw how these simple elements fit



  [Read more...]
Failover and Flexible Replication Topologies in MySQL 5.6
Employee +6 Vote Up -0Vote Down

Global Transaction Identifiers – why, what, and how

Next post: Advanced use of Global Transaction Identifiers
This post was kindly
translated to Japanese by Ryusuke Kajiyama.

In MySQL 5.6 we introduced a new replication feature called Global Transaction Identifiers, or GTIDs. While there are many use cases, our primary motivation for introducing GTIDs is that it allows for seamless failover. By this, we mean promoting one of the slaves to be come a master, if the master crashes, with minimal manual intervention and service disruption.

This is the first in a series of several blog posts. We will go through several use cases and show how




  [Read more...]
How-To: Guide to Database Migration from Microsoft SQL Server using MySQL Workbench
Employee_Team +3 Vote Up -0Vote Down

MySQL Workbench 5.2.41 introduces a new Migration Wizard module. This module allows you to easily and quickly migrate databases from various RDBMS products to MySQL. In this initial version, migrations from Microsoft SQL Server are supported, but it should also be possible to migrate from most ODBC capable RDBMS as well, using its generic RDBMS support. Additionally, you can use it to perform MySQL to MySQL database copies, which can be used for tasks such as copying a database across servers or migrating data across different versions of MySQL.

So let’s get our hands dirty and run through the Migration Wizard in order to migrate a Microsoft SQL Server database to MySQL. In the rest of this post I assume that you have:

  • A running SQL Server instance in which you have proper access to the database you want to migrate.
  [Read more...]
Building MySQL Workbench from sources on Ubuntu/Debian
Employee_Team +0 Vote Up -0Vote Down

To build MySQL Workbench one would need to install dependencies, fetch source code, configure it and actually do a build.

Note: On a Core2 Quad 2.4 GHz and a 4G of RAM it takes about 30-40 minutes to build Workbench. Also it uses about 4.2G of hdd space to build.

Here are steps to build Workbench on Ubuntu/Debian:

1) install deps. It is better to use terminal. The command to install deps is below:

sudo apt-get install build-essential autoconf automake libtool libzip-dev libxml2-dev libsigc++-2.0-dev libglade2-dev libgtkmm-2.4-dev libglu1-mesa-dev libmysqlclient15-dev uuid-dev liblua5.1-dev libpcre3-dev g++ libglade2-dev libgnome2-dev python-pexpect libboost-dev libsqlite3-dev python-dev libgnome-keyring-dev libctemplate-dev

2) Get source code from http://www.mysql.com/downloads/workbench/

3) unpack

  [Read more...]
Four short links: 28 June 2011
+0 Vote Up -1Vote Down

  • Networks Blocking Google TV -- the networks are carrying over their old distribution models: someone aggregates eyeballs and pays them for access. In their world view, Google TV is just another cable company. They're doubling down on this wholesale model, pulling out of Hulu and generally avoiding dealing with the people who ultimately watch their shows except through ad-filled shows on their corporate sites. (via Gina Trapani)
  • Mobile Market Snippets -- lots of numbers collected by Luke Wroblewski. After the Verizon iPhone launched in
  •   [Read more...]
    Workbench and MySQL server at non-standard location in Linux.
    Employee_Team +1 Vote Up -0Vote Down

    Recently I had to test MySQL Workbench against fresh version of the server. Naturally, the default mysql-server was already installed from repository of my Linux distro. So I installed the latest server version into my /opt/server directory. And then I had several points to resolve, for example, how to start detached server process from Workbench Adminstrator; how to detect if the server is running or not, given that there are many of them running; how to stop the server.

    Now I will show several workarounds to perform tasks listed in the previous paragraph. Below are the commands I put into Server Instance Editor, there are corresponding text entries labeled: ‘Start MySQL’, ‘Stop MySQL’, ‘Check MySQL Status’:

    - Staring server – (nohup /opt/server/5.5.9/bin/mysql_safe –defaults-file=/opt/server/5.5.9/my.cnf & disown %1)
    Note!

      [Read more...]
    Rewriting the Creating a CRUD Application with PHP tutorial cycle: help wanted!
    Employee +0 Vote Up -0Vote Down

    I've been reworking the Creating a CRUD Application with PHP tutorials. The new version should be ready for 7.0 Beta 2 release. In the new version:

    • I replaced mysql functions with mysqli functions.
    • With the help of Christoper Jones, I've added OCI8 versions of the code for connecting to Oracle Database
    • I've fixed some old bugs and improved the tutorials overall.

    In the course of this work, two things have come to my attention. These are two things that you can help with.

    • The title Creating a CRUD Application... is not very appealing.
    • The sample CSS used for Lesson 8 is terrible.

    So first, can anyone suggest a new title? We have one


      [Read more...]
    Rewriting the Creating a CRUD Application with PHP tutorial cycle: help wanted!
    Employee +0 Vote Up -0Vote Down

    I've been reworking the Creating a CRUD Application with PHP tutorials. The new version should be ready for 7.0 Beta 2 release. In the new version:

    • I replaced mysql functions with mysqli functions.
    • With the help of Christoper Jones, I've added OCI8 versions of the code for connecting to Oracle Database
    • I've fixed some old bugs and improved the tutorials overall.

    In the course of this work, two things have come to my attention. These are two things that you can help with.

    • The title Creating a CRUD Application... is not very appealing.
    • The sample CSS used for Lesson 8 is terrible.

    So first, can anyone suggest a new title? We have one


      [Read more...]
    MySQL Workbench: Manage MySQL on Windows Servers the Windows way
    Employee_Team +8 Vote Up -1Vote Down

    The MySQL team has been continuously improving its products on the Windows platform. Along this line, we’ve responded to a request from our users of Workbench on Windows – to provide remote access to Windows Servers using Windows management methods – as an alternative  to SSH.

    Managing a MySQL server obviously requires access to the target machine, which usually requires elevated rights for certain tasks like restarting the server or manipulating the configuration file on Windows (where this file is in a protected path). For local connections this is mostly not a big deal. However for remote boxes security measures prevent easy manipulation of such essential things like server processes. In this blog post we discuss native Windows management and how it can be used in MySQL Workbench.

    Remote Management

    MySQL Workbench first introduced remote access via SSH (secure shell), a

      [Read more...]
    MySQL Workbench: Introducing Utilities
    Employee_Team +8 Vote Up -0Vote Down

    MySQL has the well earned reputation for ease-of-use and “15-minutes-to-success”, since we continually focus making the server easy to use. MySQL Workbench provides the visual tools for database design, development, and administration. However, many DBAs prefer using the command-line, and there are many tasks that require the creation scripts for doing the job.

    To make it easier to work with the server, the latest release of the MySQL Workbench—version 5.2.31—contain a set of Python scripts intended to make the life easier for DBAs by providing easy-to-use utilities for common tasks, which were introduced in the blog MySQL Workbench: Utilities. The set currently consists of just a few utilities, but will expand over time.

    The utilities available in the Workbench are:

      [Read more...]
    MySQL Workbench Plugin: Auto-Create Foreign Keys
    Employee_Team +6 Vote Up -0Vote Down

    To automatically create Foreign Key relationships is a typical use case for developers working with the MyISAM storage engine. This has been a popular topic on the Blog and forums so we’re revisiting it here – with a new and improved plugin written in Python.

    While the InnoDB storage engine supports foreign keys, MyISAM doesn’t, but developers often pick it for various reasons and leave the application to handle relationships itself. MySQL Workbench can be used to reverse engineer a database to a model to better visualize or maintain it. But since MyISAM doesn’t have foreign keys, databases that use it will be lacking a very important part of it’s structure in the diagrams. You can link the columns manually, using the relationship tool to link columns, but you can also automate that. Databases are usually created so that columns that represent relationships have names that follow some

      [Read more...]
    Install, configure and run MySQL Cluster – demo video
    Employee +8 Vote Up -0Vote Down

    There is a new video available: Demonstration of installing, configuring and running MySQL Cluster (LINUX) (http://www.mysql.com/products/database/cluster/cluster_install_demo_linux.html" target="_blank) to accompany the MySQL Cluster Quick Start guides (http://www.mysql.com/products/database/cluster/get-started.html#quickstart" target="_blank). The Flash video video lasts for about 7 minutes.

    If you aren’t able to view Flash on your device then a (poorer quality) version is included here – watch the Flash version (http://www.mysql.com/products/database/cluster/cluster_install_demo_linux.html" target="_blank) if you’re able to!

    Quick start guides: MySQL cluster in 10 minutes
    +11 Vote Up -2Vote Down
    Scared of MySQL Cluster?
    Don't be. You may want to try the quick start guides that are available in the Cluster downloads page.
    These guides are a step-by-step instructions set to create a simple cluster in one host.
    Following the instructions, you will be able to shape up all the cluster components in 10 minutes or less. This will be far from production ready, of course, but it shows that cluster is not rocket science, and anyone can get started with it with a minimal time investment.I tried the Linux instructions on my Mac, and it worked without need for any changes. Things may be different when you deploy a real set of servers on


      [Read more...]
    Videos of Pythian Sessions from the 2010 O’Reilly MySQL Conference and Expo
    +2 Vote Up -0Vote Down

    Here’s a sneak peek at a video matrix — this is all the videos that include Pythian Group employees at the MySQL conference. I hope to have all the rest of the videos processed and uploaded within 24 hours, with a matrix similar to the one below (but of course with many more sessions).

    TitlePresenterSlidesVideo link
    (hr:min:sec)Details (Conf. site link)

    Main Stage
    Keynote: Under New Management: Next Steps for the CommunitySheeri K. Cabral (Pythian)N/A18:16
    session 14808Ignite talk: MySQLtuner 2.0Sheeri K. Cabral (Pythian)PDF5:31N/A
    Interview
    Thoughts on Drizzle and

      [Read more...]
    Going to the O'Reilly MySQL Conference & Expo
    Employee +0 Vote Up -0Vote Down

    As I've been doing the last couple of years, I will be going to the O'Reilly MySQL Conference & Expo. In addition to the tutorial and the replication sessions that I will be holding together with Lars, I will be holding a session about the binary log together with Chuck from the Backup team which the Replication team normally works very close with.

    This year, O'Reilly also have a Friend of the Speaker discount of 25% that you can use when you register using the code mys10fsp.

    The sessions that we are going to hold are listed below. Note that I am using Microformats[Read more...]
    MySQL Workbench 5.2 Beta Quick-Start Tutorial
    Employee_Team +0 Vote Up -0Vote Down

    MySQL Workbench 5.2 introduces a lot of new functionality and therefore this short tutorial will help you to get started quickly.

    The Home Screen

    The most prominent new addition in respect to previous Workbench releases is the new Home Screen. It allows you to access the main features of Workbench in a nice and easy way and is divided into 4 parts.

    The upper Workbench Central panel features a few Links and Action Buttons to quickly access common resources.

    The lower Workspace panel shows the main feature sets, grouped horizontally.

    • SQL Development allows editing and execution of SQL queries and scripts, create or alter database objects and edit table data.
    • Data Modeling covers the EER Modeling functionality you might already be familiar with from previous MySQL Workbench releases.
    • Server Administration offers
      [Read more...]
    Technical Webinars
    Employee +0 Vote Up -0Vote Down

    You want to use or to know more about Sun technologies? Join these Webinars to improve your knowledge and skills. You will be able to ask questions to Sun's experts.

    • Mercredi 10 Février : Securité pour les applications Web. Pour les startups du Web, la protection et la sécurisation de leurs applications, de leurs données, et de celles de leurs clients est un véritable facteur clé de succès.  Ce Webinar couvre les différents challenges liés à la sécurité ainsi que les solutions associées telles que l'encryption, l'authentification, les certificats, la sécurisation du stockage et le stockage à tolérance de panne, les environnements étanches. Les architectes de Sun Startup Essentials présenteront des implémentations économiques basées sur des composents standards et ouverts tel qu'Apache,

      [Read more...]
    MySQL Workbench Administrator Plugin
    Employee_Team +1 Vote Up -0Vote Down

    Recently we have released Workbench 5.2.4 Alpha. This version has some new features, and amongst them there is Workbench Administrator plugin or WBA plugin for short.

    The plugin aims to ease the managing process of server instances. What we offer with WBA is a simple way to check status, configure and control one server instance. Some parts will resemble discontinued MySQL Administrator.

    And here is a short summary of what we will have in WBA:

    • Start/Stop server
    • Edit server configuration (my.cnf)
    • Manage user accounts
    • Monitor user connections
    • Status/Server variables browsing
    • Log browsing
    • Dump/Restore

    In this alpha we have implemented a subset, which targets local usage only. Remote management and administration is upcoming. The subset includes:

    • Add new Server Profiles
    • Start/Stop the Server
    • Edit
      [Read more...]
    Backup MySQL in a Second with ZFS
    Employee +1 Vote Up -1Vote Down

    MySQL backup soon becomes an important matter when the database is used in production. The pain-point comes from the fact that while backuping the database is not available to respond to client requests anymore. With mysqldump - the standard tool for performing MySQL backups - and a large database the operation can go over many tenth of minutes if not hours. If I am running my business on line this is simply not acceptable.

    The classical approach to workaround this problem is to take advantage of MySQL replication. I set up a master/slave configuration where the slave acts as copy of the master. Then, when needed, I run mysqldump on the slave without any service interruption on the master.

    But ZFS snapshosts bring a new straightforward approach that avoids the pain and the complexity of a master/slave replication.



      [Read more...]
    MySQL Workbench 5.2 Querying Quick-Tour
    Employee_Team +0 Vote Up -0Vote Down

    For anybody interested in trying out our new MySQL Workbench 5.2 Alpha2 I have prepared a short Quick-Tour that will show you the most important steps to successfully use WB to query your databases.

    Manage Your Connections

    MySQL Workbench 5.2 introduces a new Home Page that makes it very easy to access all your Database Connections and EER Models. It features the Workbench Central Panel, the Database Connections Panel and the Model Files Panel.

    In order to be able to connect to your  MySQL server you have to create a new Database Connection so MySQL Workbench knows about your server instance. Follow the steps shown below to create your first Database Connection.

    Click on the screen shot to see it at full size.

      [Read more...]
    Free Workshop + Free Workbench SE at MySQL UC
    Employee_Team +0 Vote Up -0Vote Down

    Everybody attending the MySQL Users Conference this year please mark your calenders! This is your chance to become a MySQL schema design expert as well as learn how to use Workbench from the experts.

    We are going to do a free Workshop called “Introduction to Data Modeling with MySQL Workbench” on Tuesday - Thursday 3 - 4:30 PM in the Santa Clara Ballroom.

    Some of the topics that will be covered:

    • Database Schema Design
      • Get familiar with common concepts of database schema design
      • Learn to avoid typical mistakes (do-s & don’t-s)
      • Tricks how to resolve typical problems
      • Performance-tune your schemata
    • MySQL Workbench
      • Get introduced to MySQL Workbench
      • Learn how to use MySQL Workbench in real world scenarios
      • Make use
      [Read more...]
    Showing entries 1 to 30 of 30

    Planet MySQL © 1995, 2013, Oracle Corporation and/or its affiliates   Legal Policies | Your Privacy Rights | Terms of Use

    Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.