最新文章专题视频专题问答1问答10问答100问答1000问答2000关键字专题1关键字专题50关键字专题500关键字专题1500TAG最新视频文章推荐1 推荐3 推荐5 推荐7 推荐9 推荐11 推荐13 推荐15 推荐17 推荐19 推荐21 推荐23 推荐25 推荐27 推荐29 推荐31 推荐33 推荐35 推荐37视频文章20视频文章30视频文章40视频文章50视频文章60 视频文章70视频文章80视频文章90视频文章100视频文章120视频文章140 视频2关键字专题关键字专题tag2tag3文章专题文章专题2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章专题3
当前位置: 首页 - 科技 - 知识百科 - 正文

Compiling&DebuggingMariaDB(andMySQL)inEclipse_MySQL

来源:动视网 责编:小采 时间:2020-11-09 19:21:20
文档

Compiling&DebuggingMariaDB(andMySQL)inEclipse_MySQL

Compiling&DebuggingMariaDB(andMySQL)inEclipse_MySQL:MariaDB Introduction:To run MariaDB from Eclipse we will actually create and install the tar.gz package resulting from compilation(SeePart 2) in a separate directory, this will allow us to have MariaDB cleanly installed on a separate locat
推荐度:
导读Compiling&DebuggingMariaDB(andMySQL)inEclipse_MySQL:MariaDB Introduction:To run MariaDB from Eclipse we will actually create and install the tar.gz package resulting from compilation(SeePart 2) in a separate directory, this will allow us to have MariaDB cleanly installed on a separate locat


MariaDB

Introduction:

To run MariaDB from Eclipse we will actually create and install the tar.gz package resulting from compilation(SeePart 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/home/yoda (or ~)	 	as home directory of developer(yoda) usermariadb-10.0.11 	as sources version (and general prefix)MariaDB10-test1 	as Eclipse project name/home/yoda/playground 	as root working directory for sources, project, and installation/home/yoda/playground/mariadb-10.0.11	as sources directory/home/yoda/playground/mariadb-10.0.11-eclipse	as project/working directory/home/yoda/playground/mariadb-10.0.11-linux-x86_64	as binary deployement directory

Replace accordingly the strings from this example to reflect your choices.

Section 3: "Install MariaDB in Eclipse"

3.1 CREATING THE PACKAGE

We have to ways to create the .tar.gz package

* In command line
* In Eclipse

Command line:

$ cd ~/playground/mariadb-10.0.11-eclipse
$ make package

At the end of the execution the package will be created and it should be namedmariadb-10.0.11-linux-x86_64.tar.gz(i686 instead of x86_64 on 32 bit Linux)

Eclipse:

Right Click on the project name(MariaDB10-test1) and choose:Make Target-->Create,
in the popup windowAdda new target just inserting the name in the first field:package, click onOk.
Now Right Click again on the project name and choose:Make Target-->Build, choosepackagefrom the list and clickBuild.

Check on Eclipse Log Console that the package is being created.

At this point, either method chosen, you should have the packagemariadb-10.0.11-linux-x86_64.tar.gzin the project directory (mariadb-10.0.11-eclipse).

3.2 INSTALL THE PACKAGE

We need at this point to run some commands from the shell:


$ cd ~/playground/
$ mv mariadb-10.0.11-eclipse/mariadb-10.0.11-linux-x86_64.tar.gz .
$ tar -zxvf mariadb-10.0.11-linux-x86_64.tar.gz
$ cd mariadb-10.0.11-linux-x86_64
$ scripts/mysql_install_db --basedir=`pwd` --datadir=`pwd`/data --user=yoda

If all is good now you have a working MariaDB installation in~/playground/mariadb-10.0.11-linux-x86_64

Section 4: "Running MariaDB in Eclipse"

4.1 Create a 'Run configuration' and Run

Assuming the full path to binaries is:/home/yoda/playground/mariadb-10.0.11-linux-x86_64.

Right Click on the project (or open theRunmenu) and click onRun As-->Run configurations...,
SelectC/C++ Application, right click and chooseNew.

Compile only two parameters in the respective tabs,MainandArguments

Main(tab):
ClickBrowseand select/home/yoda/playground/mariadb-10.0.11-linux-x86_64/bin/mysqld

Arguments(tab):
--basedir=/home/yoda/playground/mariadb-10.0.11-linux-x86_64 --datadir=/home/yoda/playground/mariadb-10.0.11-linux-x86_64/data --plugin-dir=/home/eclipse/10011/lib/plugin --user=yoda --log-error=error.log --pid-file=mysql.pid --socket=10011.sock --port=10011

Click onApplyand then you can click onRun, as usual check the progress in the Eclipse log Console,

A

文档

Compiling&DebuggingMariaDB(andMySQL)inEclipse_MySQL

Compiling&DebuggingMariaDB(andMySQL)inEclipse_MySQL:MariaDB Introduction:To run MariaDB from Eclipse we will actually create and install the tar.gz package resulting from compilation(SeePart 2) in a separate directory, this will allow us to have MariaDB cleanly installed on a separate locat
推荐度:
标签: in and mysql
  • 热门焦点

最新推荐

猜你喜欢

热门推荐

专题
Top