Planet MySQL Planet MySQL: Meta Deutsch Español Français Italiano 日本語 Русский Português 中文
Showing entries 1 to 10 of 13 3 Older Entries

Displaying posts with tag: cmake (reset)

Compiling & Debugging MariaDB(and MySQL) in Eclipse from scratch - Part 5: "Profiling in Eclipse with OProfile"
+1 Vote Up -0Vote Down

Section 6: "Profile a real case"

6.1 INTRODUCTION

Profiling & Debugging is an argument that would require an entire book, the aim of this(and the others) posts of this series is to give you the basic knowledge on how to work with these tools and techniques withing Eclipse. For instance if you want to learn to profile with OProfile you should study on the abundant and separate resources, you may start from: http://OProfile.sourceforge.net

6.2 ABOUT NAMING THE PROJECT

read more

Compiling & Debugging MariaDB(and MySQL) in Eclipse from scratch - Part 4: "Profiling in Eclipse - Preparation"
+0 Vote Up -0Vote Down

Section 5: "Prepare Eclipse for profiling"

5.1 INTRODUCTION

In this part we will prepare Eclipse to profile our recently compiled(see Part 3) MariaDB(or MySQL).
Profiling means basically measuring where the time is spent by the application.
You may be interested in knowing how much time is spent in a specific function execution,
or you may want to know statistics about the dustribution of function calls, that is operating a data aggregation.

read more

Compiling & Debugging MariaDB(and MySQL) in Eclipse from scratch - Part 3: "Running in Eclipse"
+4 Vote Up -0Vote Down

Introduction:

To run MariaDB from Eclipse we will actually create and install the tar.gz package resulting from compilation(See Part 2) in a separate directory, this will allow us to have MariaDB cleanly installed on a separate location and so it will be also easily possible to run it independently from Eclipse.

In these Blog posts series we assume:


yoda							as developer user
 

read more

Compiling & Debugging MariaDB(and MySQL) in Eclipse from scratch - Part 2: "Compile in Eclipse"
+2 Vote Up -0Vote Down

Section 2: "COMPILE MARIADB IN ECLIPSE"



2.1 Download and prepare sources folder

We will need a directory to use as our playground, if you create the user yoda in Section 1:

$ su - yoda
$ mkdir -p ~/playground

Download latest MariaDB 10 sources tar.gz and copy the archive into the above directory, you can latest sources from:

read more

Compiling & Debugging MariaDB(and MySQL) in Eclipse from scratch - Part 1: "Setup the building environment"
+0 Vote Up -0Vote Down
This guide will help you in compiling and debugging MariaDB (MySQL, Percona) within the Eclipse IDE on Linux and using cmake for source project preparation. It will be split in parts to keep each post lightweight and with a finite objective. At the end of reading this series of blog posts you should be able to:
  • Prepare for compilation any MariaDB (MySQL, Percona) source release based on cmake framework.
  • read more

    Why Boost.Geometry in MySQL?
    Employee_Team +5 Vote Up -0Vote Down

    In the newly released MySQL 5.7 labs release, users will find refactored GIS functions, as well as R-tree indexes in InnoDB. One notable change is that we have replaced a lot of the native code for geometry computation with an external library, namely Boost.Geometry. In fact, 5.7 will be the first MySQL release that depends on Boost. So why did we make such a move?

    In recent years, we have seen a tremendous growth in location based services, and consequently GIS has become a strategically important area for MySQL. Our existing customers require more GIS features, and we believe this is a growing market opportunity.

    Up to MySQL 5.6, GIS support in MySQL has been very limited, and the geometry algorithms implemented in MySQL were

      [Read more...]
    Building MySQL with Boost
    Employee_Team +1 Vote Up -0Vote Down

    We have a new April labs release that you can download from labs.mysql.com. There are more labs releases. Please try them all, but for now let’s focus on the one called “MySQL GIS, InnoDB R-tree, Parser Refactoring”.

    The release contains InnoDB R-trees, the first step of our new GIS implementation, a refactored and faster parser and improved condition filtering cost calculations. You can download and run the binaries just like before, but if you want to build it from source, there are some details you should know. Otherwise you may fail to build MySQL (bug #72172).

    This labs release requires Boost to build. Specifically, it requires Boost 1.55. But don’t go running off to boost.org looking for the latest tarball just yet — there’s no need for that. The MySQL

      [Read more...]
    Compile MariaDB 5.5.28 MySQL on Slackware i486-slackware-linux-gcc-3.3.4 with Cmake 2.8.10.1
    +0 Vote Up -0Vote Down

    1. install Cmake

    wget  http://www.cmake.org/files/v2.8/cmake-2.8.10.1.tar.gz
    tar xvfz cmake-2.8.10.1.tar.gz
    cd cmake-2.8.10.1/
    ./configure
    gmake -j3
    

    2. install libaio

    gmake -wget  http://www.kernel.org/pub/linux/kernel/people/bcrl/aio/libaio-0.3.92.tar.gz
    tar xvfz libaio-0.3.92.tar.gz
    cd libaio-0.3.92/
    make prefix=/usr/
    make prefix=/usr/ installj3 install
    

    3. install MariaDB 5.5.28
    go to https://downloads.mariadb.org/mariadb/5.5.28/ OR

    wget https://downloads.mariadb.org/f/mariadb-5.5.28/kvm-tarbake-jaunty-x86/mariadb-5.5.28.tar.gz/from/http:/mariadb.ulak.net.tr/
    tar xvf mariadb-5.5.28.tar.gz
    cd mariadb-5.5.28/
    

    the build will fail :

    root@bubu:[Tue Nov 27

      [Read more...]
    Building MariaDB 5.3 on Windows
    +2 Vote Up -0Vote Down

    I just wanted to share my steps for building MariaDB 5.3 on Windows. (Note, this is not much different than the instructions Wlad posted here).

    But, things are not always so smooth, and of course I ran into a couple small issues, so I wanted to share my outputs plus those issues and their solutions (once again many thanks go to Wlad!) for those out there who might encounter the same.

    Here are the steps to build:

  • Download MariaDB 5.3 and extracted to C:\mariadb-5.3
  • cd C:\mariadb-5.3
  • mkdir bld
  • cd bld
  • cmake .. -G "Visual Studio 9 2008"
  • cmake --build . --config relwithdebinfo --target package

    * By making a sub-dir named ‘bld’ and cd’ing into it, you’ll keep

  •   [Read more...]
    MySQL 5.5 Windows Build Appendix : Full Outputs and Common Errors from Building MySQL 5.5 on Windows
    +2 Vote Up -0Vote Down

    The other day, I posted a “how-to” article for building MySQL 5.5 on Windows from the source code tree.

    In an attempt to keep the post as brief as possible, I omitted many outputs, as well as a number of common bugs/problems one could encounter, and so I just wanted to follow-up with some of that in this “appendix” of sorts.

    This way, folks who run into any issues might find solutions to those problems here.

    I’ll start with the outputs first, followed by the common problems.

    Outputs (When works as expected):

    ..

    Output from Obtaining Source Code:

    C:\Users\Chris>cd C:\
    
    C:\>bzr init-repo --trees mysql-5.5
    Shared repository with trees (format: 2a)
    Location:
      shared repository: mysql-5.5
    
    C:\>cd mysql-5.5
    
    C:\mysql-5.5>bzr branch
      [Read more...]
    Showing entries 1 to 10 of 13 3 Older Entries

    Planet MySQL © 1995, 2014, 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.