Are you the publisher? Claim or contact us about this channel


Embed this content in your HTML

Search

Report adult content:

click to rate:

Account: (login)

More Channels


Channel Catalog


Channel Description:

Forum for Installing and Configuring MySQL.
    0 0

    Hi,

    I want to run multiple instances of MySQL 5.7.13 under Ubuntu 14.04 x64 but when so I created a new group in my.cnf called [mysqld1] and run the following command but unfortunately I get this error message:

    mbnoimivm@ubuntu:~$ sudo mysql_install_db --user=mysql --datadir=/var/lib/mysql1
    [sudo] password for mbnoimivm:
    2016-07-29 21:12:27 [WARNING] mysql_install_db is deprecated. Please consider switching to mysqld --initialize
    2016-07-29 21:12:27 [ERROR]   Can't locate the server executable (mysqld).
    mbnoimivm@ubuntu:~$ sudo service mysql status
     * MySQL Community Server 5.7.13 is running
    mbnoimivm@ubuntu:~$

    How can I fix this issue?

    --- my.cnf ---
    [client]
    port        = 3306
    socket        = /var/run/mysqld/mysqld.sock
    default-character-set = utf8
    
    [mysqld_safe]
    pid-file    = /var/run/mysqld/mysqld.pid
    socket        = /var/run/mysqld/mysqld.sock
    nice        = 0
    
    [mysqld]
    user        = mysql
    pid-file    = /var/run/mysqld/mysqld.pid
    socket = /var/run/mysqld/mysqld.sock
    port = 3306
    basedir        = /usr
    datadir = /var/lib/mysql
    tmpdir        = /tmp
    lc-messages-dir    = /usr/share/mysql
    explicit_defaults_for_timestamp
    collation-server = utf8_unicode_ci
    init-connect='SET NAMES utf8'
    character-set-server = utf8
    key_buffer_size = 384M
    max_allowed_packet = 128M
    #table_open_cache = 512
    sort_buffer_size = 2M
    read_buffer_size = 2M
    read_rnd_buffer_size = 8M
    myisam_sort_buffer_size = 256M
    thread_cache_size = 8
    query_cache_size = 256M
    log-error    = /var/log/mysql/error.log
    symbolic-links=0
    big-tables
    default-storage-engine = MyISAM
    sql-mode="STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION"
    slow-query-log = 1
    slow-query-log-file = /var/log/mysql/slow.log
    general-log = 1
    general-log-file = /var/log/mysql/general.log
    #default-time-zone = 'Europe/Istanbul'
    #max_connections = 1002
    #open-files-limit = 10000
    
    [mysqld1]
    pid-file    = /var/run/mysqld/mysqld1.pid
    socket        = /var/run/mysqld/mysqld1.sock
    port        = 3307
    user        = mysql
    basedir        = /usr
    datadir = /var/lib/mysql1
    
    [mysqldump]
    quick
    max_allowed_packet = 16M
    
    [mysql]
    default-character-set = utf8
    no-auto-rehash
    
    [myisamchk]
    key_buffer_size = 256M
    sort_buffer_size = 256M
    read_buffer = 2M
    write_buffer = 2M
    
    [mysqlhotcopy]
    interactive-timeout
    
    
    !includedir /etc/mysql/conf.d/
    

    0 0

    I am trying to install MySQL Cluster in a Windows environment. I am attempting to set up a three node cluster on one server and two workstations. All three with multithreaded data nodes, two workstations with sql and management nodes, and the server with an api node

    I am following the quick setup guide but I am running into issues. The guide says to extract the files to a folder on the remote servers but nothing else. I did run setup on the remote servers just to see if that would help. When I run the setup wizard it does not see the remote servers. It says "could not open socket to ip.ip.ip.ip". I believe this wizard is trying to connect via ssh but there is nothing listening port 22 on the remote servers according to netstat -ano. Do I need to start a service or something on the remote servers.

    I am familiar with mysql but this is my first stab at Cluster.

    0 0

    Hi all,

    I'm shortly about to upgrade MySQL for the first time. I've read the documentation but have a few questions.

    Upgrading from 5.1.49 to 5.1.72 seems straight forward. I've succeeded a couple of times on a test system with no issue. The questions I have are relating to upgrading from 5.1.72 to 5.5.51

    Chapter 2.11.1 'Upgrading MySQL' of the documentation recommends a logical upgrade procedure when upgrading from a previous release. However straight after that recommendation, it points Windows users in the direction of 2.3.10 'Upgrading MySQL on Windows'. There is no logical upgrade procedure outlined for Windows in 2.3.10.

    Is the logical upgrade procedure recommended for Linux users only, or Windows users too? If so, would a logical upgrade procedure for Windows look something like this:

    mysqldump of all databases
    stop mysql service
    install mysql 5.5.51 msi installer (leaving 5.1 intact)
    run mysql server instance config wizard
    remove MySQL service from 5.1 install
    re-run mysql server instance config wizard again
    create MySQL service for 5.5 install, same root password
    import dump file
    run mysql_upgrade
    Update options file in Workbench to point to the new 5.5\my.ini

    Or, do I strictly follow the procedure outlined in 2.3.10 'Upgrading MySQL on Windows'? This is more of an in-place upgrade. I could see it being annoying that a 5.5 install is located within a 'MySQL Server 5.1' directory but I could live with that.

    Any help and guidance would be much appreciated.

    Thanks,

    Tom

    0 0

    https://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization.html

    mysql Ver 14.14 Distrib 5.7.14, for Linux (x86_64)

    Linux localhost 3.10.0-327.28.2.el7.x86_64 #1 SMP Mon Jun 27 14:48:28 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux

    These are both newly installed OS, MySQL instances.

    In reference to the instructions at the link attached, I'm confused as to whether or not I have to initialize MySQL or not based on the following:

    ------------------------

    Instruction #1:
    "If necessary, initialize the data directory and create the MySQL grant tables. For some MySQL installation methods, data directory initialization may be done for you automatically:

    ◾ Windows distributions prior to MySQL 5.7.7 include a data directory with pre-built tables in the mysql database. As of 5.7.7, Windows installation operations performed by MySQL Installer initialize the data directory automatically.

    ◾ Installation on Linux using a server RPM or Debian distribution from Oracle.

    ◾ Installation using the native packaging system on many platforms, including Debian Linux, Ubuntu Linux, Gentoo Linux, and others.

    ◾ Installation on OS X using a DMG distribution.


    Question #1:
    I'm using rhel7, and I used the mysql57-community-release-el7-8.noarch.rpm from the Oracle/MySQL website. Does this mean I don't need to create and / or initialize a data directory? How do I confirm this data directory exists? Where is it?

    Question #2:
    "Change location into the top-level directory of your MySQL installation, represented here by BASEDIR:

    shell> cd BASEDIR

    BASEDIR is likely to be something like /usr/local/mysql or /usr/local. The following steps assume that you have changed location to this directory.

    You will find several files and subdirectories in the BASEDIR directory. The most important for installation purposes are the bin and scripts subdirectories, which contain the server as well as client and utility programs."

    First, usr/local exists, but usr/local/mysql does not so not sure what that means. Also, there is no scripts directory either....?

    [username@localhost local]$ ll
    total 0
    drwxr-xr-x. 2 root root 6 May 25 2015 bin
    drwxr-xr-x. 2 root root 6 May 25 2015 etc
    drwxr-xr-x. 2 root root 6 May 25 2015 games
    drwxr-xr-x. 2 root root 6 May 25 2015 include
    drwxr-xr-x. 2 root root 6 May 25 2015 lib
    drwxr-xr-x. 2 root root 6 May 25 2015 lib64
    drwxr-xr-x. 2 root root 6 May 25 2015 libexec
    drwxr-xr-x. 2 root root 6 May 25 2015 sbin
    drwxr-xr-x. 5 root root 46 Aug 4 12:06 share
    drwxr-xr-x. 2 root root 6 May 25 2015 src


    "2. Create a directory that provides a location to use as the value of the secure_file_priv system variable that limits import/export operations to a specific directory. See Section 6.1.4, “Server System Variables”."

    Based on missing directories, where do I create this new directory? Do I create a directory called MySQL_files in usr/local?

    Next:

    "If necessary, ensure that the distribution contents are accessible to mysql. If you installed the distribution as mysql, no further action is required. If you installed the distribution as root, its contents will be owned by root. Change its ownership to mysql by executing the following commands as root in the installation directory. The first command changes the owner attribute of the files to the mysql user. The second changes the group attribute to the mysql group.

    shell> chown -R mysql .
    shell> chgrp -R mysql ."



    Question:

    What is "distribution contents"? Is this the location of where mysql installed? Where is that considering I can't find any mysql in bin? Is it the location of mysql or mysqld command, ...... ???


    Next:

    "If necessary, initialize the data directory, including the mysql database containing the initial MySQL grant tables that determine how users are permitted to connect to the server.

    Typically, data directory initialization need be done only the first time you install MySQL. If you are upgrading an existing installation, you should run mysql_upgrade instead (see Section 5.4.7, “mysql_upgrade — Check and Upgrade MySQL Tables”). However, the command that initializes the data directory does not overwrite any existing privilege tables, so it should be safe to run in any circumstances.

    As of MySQL 5.7.6, use the server to initialize the data directory: "


    shell> bin/mysqld --initialize --user=mysql

    Question: Where is the data directory? How does this apply to the folder I created earlier? How does it know about this folder?



    Apologize for the long list of questions, but, this is quite confusing and I'm not sure if the documentation was written with varying OS's in mind, et al...... but seems like there needs to be a table that lists where mysql files are installed for perhaps varying OS so it's easier to find the reference points. ie- I found mysqld in sbin (not bin).

    0 0

    Hi All,

    I made a mistake of not writing the root password down during installation. Anything that I can do? I have tried the reset method on the MySQL Manual but am having difficulty. Please help.

    Regards,
    NJ

    0 0

    Hi,

    Will you pl help us to suggest some solutions to solve these issues:

    1. We need a mysql db architecture where if one master fails then any of the slave can automatically upgrade to master.

    2. Also, is it possible to manage all read operations to slave server and only write operations to master.

    I tried to find the solution and found mysql cluster as better approach with memcache but failed to configure the same on ubuntu 14.04 machine.

    0 0

    Trying to migrate a dead Win 7 system to a Win 10 system. Replacing the data folder with the one off the old machine produces the following error:

    160810 13:20:05 [ERROR] Plugin 'InnoDB' init function returned error.
    160810 13:20:05 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    160810 13:20:05 [ERROR] Unknown/unsupported storage engine: INNODB
    160810 13:20:05 [ERROR] Aborting

    Curiously, prior to replacing the data folder, the daemon seemed to start and run.

    Does 5.5 run on Win 10? Or is this a different issue?

    0 0

    Trying to upgrade MySQL 5.5 to 5.6 (as a stop along the way to 5.7) under OS X Server 10.11.

    I have somehow ended up with mixed permission settings. For example, in the /data directory, many files have owner root and group _mysql. Others have both owner and group as _mysql. In the main MySQL install directory, all files and directories are root:wheel except the data directory, which is _mysql:_mysql.

    When I try to start mysqld, it says "Can't create test file ...lower-test" and "File './mysql-bin.index' not found (Errcode: 13 - Permission denied)" then aborts.

    How can I fix this?

    (Also, when mysqld is starting it warns:
    'THREAD_CONCURRENCY' is deprecated and will be removed in a future release.
    and:
    TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option
    What are these about? I have the thread concurrency stuff commented out in my.cnf.)

    0 0

    I am trying to uninstall MYSQL; it seems to have lot of dependencies; Is this correct ? Looks like its removing core components ?

    prompt#> yum remove mysql-community-{server,client,common,libs}-*


    Dependencies Resolved

    ===========================================================================================================================================================
    Package Arch Version Repository Siz
    ===========================================================================================================================================================
    Removing:
    mysql-community-libs x86_64 5.6.28-2.el6 installed 8.5
    Removing for dependencies:
    cloud-init x86_64 0.7.5-1.el6 installed 1.4
    cronie x86_64 1.4.4-12.el6 installed 174
    cronie-anacron x86_64 1.4.4-12.el6 installed 43
    crontabs noarch 1.10-33.el6 installed 2.4
    mysql-community-client x86_64 5.6.28-2.el6 installed 82
    mysql-community-libs-compat x86_64 5.6.28-2.el6 installed 5.4
    mysql-community-server x86_64 5.6.28-2.el6 installed 236
    postfix x86_64 2:2.6.6-6.el6_5 installed 9.7
    redhat-lsb x86_64 4.0-7.el6 installed 0.0
    redhat-lsb-compat x86_64 4.0-7.el6 installed 0.0
    redhat-lsb-core x86_64 4.0-7.el6 installed 22
    redhat-lsb-graphics x86_64 4.0-7.el6 installed 0.0
    redhat-lsb-printing x86_64 4.0-7.el6 installed 0.0
    sysstat x86_64 9.0.4-22.el6_5.1 installed 823

    Transaction Summary
    ===========================================================================================================================================================
    Remove 15 Package(s)

    Installed size: 344 M
    Is this ok [y/N]: N

    0 0

    I thought I had a permissions issue, but now I don't know. Here's what I get when I try to start mysqld:



    2016-08-15 15:28:06 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2016-08-15 15:28:06 0 [Note] mysqld (mysqld 5.6.32-log) starting as process 59584 ...
    2016-08-15 15:28:06 59584 [Warning] Can't create test file /usr/local/mysql-5.6.32-osx10.11-x86_64/data/froghill.lower-test
    2016-08-15 15:28:06 59584 [Warning] Can't create test file /usr/local/mysql-5.6.32-osx10.11-x86_64/data/froghill.lower-test
    2016-08-15 15:28:06 59584 [Warning] No argument was provided to --log-bin, and --log-bin-index was not used; so replication may break when this MySQL server acts as a master and has his hostname changed!! Please use '--log-bin=froghill-bin' to avoid this problem.
    mysqld: File './froghill-bin.index' not found (Errcode: 13 - Permission denied)
    2016-08-15 15:28:06 59584 [ERROR] Aborting

    2016-08-15 15:28:06 59584 [Note] Binlog end
    2016-08-15 15:28:06 59584 [Note] mysqld: Shutdown complete


    I added this line to my.cnf:
    log_bin = froghill-bin

    and, in desperation:
    datadir = /usr/local/mysql/data

    Now I get the following, with the "unable to lock" message repeated apparently forever:

    2016-08-15 19:10:27 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2016-08-15 19:10:27 0 [Note] mysqld (mysqld 5.6.32-log) starting as process 74945 ...
    2016-08-15 19:10:27 74945 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitive
    2016-08-15 19:10:27 74945 [Note] Plugin 'FEDERATED' is disabled.
    2016-08-15 19:10:27 74945 [Note] InnoDB: Using atomics to ref count buffer pool pages
    2016-08-15 19:10:27 74945 [Note] InnoDB: The InnoDB memory heap is disabled
    2016-08-15 19:10:27 74945 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
    2016-08-15 19:10:27 74945 [Note] InnoDB: Memory barrier is not used
    2016-08-15 19:10:27 74945 [Note] InnoDB: Compressed tables use zlib 1.2.3
    2016-08-15 19:10:27 74945 [Note] InnoDB: Not using CPU crc32 instructions
    2016-08-15 19:10:27 74945 [Note] InnoDB: Initializing buffer pool, size = 512.0M
    2016-08-15 19:10:27 74945 [Note] InnoDB: Completed initialization of buffer pool
    2016-08-15 19:10:27 74945 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 35
    2016-08-15 19:10:27 74945 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
    2016-08-15 19:10:27 74945 [Note] InnoDB: Retrying to lock the first data file
    2016-08-15 19:10:28 74945 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 35
    2016-08-15 19:10:28 74945 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.
    2016-08-15 19:10:29 74945 [ERROR] InnoDB: Unable to lock ./ibdata1, error: 35
    2016-08-15 19:10:29 74945 [Note] InnoDB: Check that you do not already have another mysqld process using the same InnoDB data or log files.

    0 0

    I have been trying for days to complete an upgrade from 5.5, which worked fine for years, to 5.6.

    I have reinstalled 5.6, and in my latest attempt, put this line in /private/etc/mysql/my.cnf:

    datadir = /usr/local/mysql-5.5.10-osx10.6-x86_64/data

    (Simply trying to point the server back at my 5.5 data directory that was working. It's backed up.)

    It still won't see my old data. Here's what I get when trying to start the server in Terminal:

    2016-08-17 16:52:09 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2016-08-17 16:52:10 0 [Note] mysqld (mysqld 5.6.32) starting as process 96949 ...
    2016-08-17 16:52:10 96949 [Warning] Can't create test file /usr/local/mysql-5.5.10-osx10.6-x86_64/data/froghill.lower-test
    2016-08-17 16:52:10 96949 [Warning] Can't create test file /usr/local/mysql-5.5.10-osx10.6-x86_64/data/froghill.lower-test
    2016-08-17 16:52:10 96949 [Note] Plugin 'FEDERATED' is disabled.
    2016-08-17 16:52:10 96949 [Note] InnoDB: Using atomics to ref count buffer pool pages
    2016-08-17 16:52:10 96949 [Note] InnoDB: The InnoDB memory heap is disabled
    2016-08-17 16:52:10 96949 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
    2016-08-17 16:52:10 96949 [Note] InnoDB: Memory barrier is not used
    2016-08-17 16:52:10 96949 [Note] InnoDB: Compressed tables use zlib 1.2.3
    2016-08-17 16:52:10 96949 [Note] InnoDB: Not using CPU crc32 instructions
    2016-08-17 16:52:10 96949 [Note] InnoDB: Initializing buffer pool, size = 256.0M
    2016-08-17 16:52:10 96949 [Note] InnoDB: Completed initialization of buffer pool
    2016-08-17 16:52:10 96949 [Note] InnoDB: Highest supported file format is Barracuda.
    2016-08-17 16:52:10 96949 [Warning] InnoDB: Resizing redo log from 2*320 to 2*3072 pages, LSN=5780163306
    2016-08-17 16:52:10 96949 [Warning] InnoDB: Starting to delete and rewrite log files.
    2016-08-17 16:52:10 7fff7e957000 InnoDB: Operating system error number 13 in a file operation.
    InnoDB: The error means mysqld does not have the access rights to
    InnoDB: the directory.
    2016-08-17 16:52:10 96949 [ERROR] InnoDB: Cannot create ./ib_logfile101
    2016-08-17 16:52:10 96949 [ERROR] Plugin 'InnoDB' init function returned error.
    2016-08-17 16:52:10 96949 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
    2016-08-17 16:52:10 96949 [ERROR] Unknown/unsupported storage engine: InnoDB
    2016-08-17 16:52:10 96949 [ERROR] Aborting

    2016-08-17 16:52:10 96949 [Note] Binlog end
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'partition'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_FT_DELETED'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_METRICS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_CMPMEM'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_CMP_RESET'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_CMP'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_LOCKS'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'INNODB_TRX'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'BLACKHOLE'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'ARCHIVE'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'MRG_MYISAM'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'MyISAM'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'MEMORY'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'CSV'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'sha256_password'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'mysql_old_password'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'mysql_native_password'
    2016-08-17 16:52:10 96949 [Note] Shutting down plugin 'binlog'
    2016-08-17 16:52:10 96949 [Note] mysqld: Shutdown complete

    It appears the two main problems may be in:
    "can't create the test file", and
    OS error 13 (some kind of permissions problem).

    I'm apparently able to connect to the server with MySQL Workbench, but it doesn't see any of my old tables or users, and it reports "unknown" for Configuration File (which is definitely present in /private/etc/mysql/my.cnf; in OS X this is aliased from /etc/mysql/my.cnf).

    I have tried everything I can think of but I'm stumped. Time for MariaDB?

    0 0

    The requirement is to have a main DB (let's call this A) supporting a main application, where there are 2-3 more remote DBs (let's call them B/C/D) supporting complimentary remote applications.

    There are some data (tables) in A that needs to be replicated to B/C/D to support the functions of the remote applications using B/C/D, and such data must always be available to all DBs, where source of such data can be added or updated in A, B, C or D.

    There are a few other tables which are storing data collected from remote apps of DBs B/C/D, and such data are to be replicated to A, where such data will only be stored for a maximum of 30 days in B/C/D before they are to be purged automatically. Such data since already replicated to A, must be permanently stored in A.

    Between A and B/C/D, some tables requires multi-way replication, where some other tables are only updated by the application at A, and some tables are updated by Applications at B/C/D but must be replicated to A and vice-versa. Some others requires only 1-way replication from B/C/D to A.

    Given the above scenario, as it is not straight forward multi-Master replication as certain tables in DBs B/C/D are updated by the remote complimentary apps sitting with B/C/D, where such data must be replicated to A, and such data are also to be purged automatically when it reaches 30 days. So is MySQL able to handle the above scenarios and be configured to handle them accordingly?

    Hope the above is not too confusing.

    Really appreciate some sound advices by MySQL experts out there as we are looking into deploying a solution using MySQL but is not dead sure if MySQL can support the requirements. Thanks in advance for your advice on the above.

    0 0

    After working for years on Ubuntu 14.04 (on OpenVZ) without any problem, I installed a new Ubuntu 16.04.01 LTS running on OpenVZ.

    I set it up as a LEMP stack.

    The problem is that after a while (hours), mysqld starts consuming 100% CPU and the error log is filled with strange 'Error in accept: Bad file descriptor' errors, over and over again, the err file quicly became 4Gb large.

    MySql needs to be setup for replication. With replication enabled, the bin.err file is written in the same way.

    I just can't figure out what happens and why. The only thing I did out of the ordinary was to set 'mysqld: ALL' in hosts.deny and 'ALL: LOCAL' and a specific IP in hosts.allow, to allow the replication.

    Any idea about what's happening? I want to find the root cause for this rather than to assume it's tcpwrappers-related and hope for the best.

    0 0

    There appears to be GA packages for MySQL server for 5.6 and 5.5 but nothing from the 5.7 line for Solaris 10. It is highly unlikely that anyone is going to upgrade from very super stable Solaris 10 to Solaris 11 just to install a MySQL server. So why don't these packages exist ?

    0 0

    There appears to be no SSL support in the libmysqlclient libs for MySQL 5.5.x or MySQL 5.6.x on Solaris. Is there no SSL support at all in any release version of MySQL ?

    0 0

    Hey,

    I'm following the documentation here (https://dev.mysql.com/doc/refman/5.7/en/server-management-using-systemd.html#systemd-multiple-mysql-instances) on Ubuntu Server 16.04.1 but the service will not start as documented. Here is what I see:

    $ my_print_defaults --defaults-file=/etc/mysql/my.cnf mysqld@mysqld10
    --user=root
    --pid-file=/var/run/mysqld10.pid
    --socket=/var/run/mysqld10.sock
    --port=3306
    --basedir=/usr
    --datadir=/var/lib/mysql10
    --tmpdir=/tmp
    --lc-messages-dir=/usr/share/mysql
    --skip-external-locking
    --key_buffer=16M
    --max_allowed_packet=16M
    --thread_stack=192K
    --thread_cache_size=8
    --myisam-recover=BACKUP
    --query_cache_limit=1M
    --query_cache_size=16M
    --log_error=/var/log/mysql10/error.log
    --server-id=22
    --expire_logs_days=10
    --max_binlog_size=100M

    $ my_print_defaults --defaults-file=/etc/mysql/my.cnf mysqld@mysqld20
    --user=root
    --pid-file=/var/run/mysqld20.pid
    --socket=/var/run/mysqld20.sock
    --port=3307
    --basedir=/usr
    --datadir=/var/lib/mysql20
    --tmpdir=/tmp
    --lc-messages-dir=/usr/share/mysql
    --skip-external-locking
    --key_buffer=16M
    --max_allowed_packet=16M
    --thread_stack=192K
    --thread_cache_size=8
    --myisam-recover=BACKUP
    --query_cache_limit=1M
    --query_cache_size=16M
    --log_error=/var/log/mysql20/error.log
    --server-id=22
    --expire_logs_days=10
    --max_binlog_size=100M

    $ sudo systemctl start mysqld@mysqld10
    Failed to start mysqld@mysqld10.service: Unit mysqld@mysqld10.service not found.

    $ sudo systemctl start mysqld@mysqld20
    Failed to start mysqld@mysqld20.service: Unit mysqld@mysqld20.service not found.

    0 0

    Hi,
    on earlier installation of mysql 5.5 I could change the data directory during the installtion.
    Today I tried to install 5.7.14. But I didn´t see how to set the data directory and the installation programm create the directory on my c: disk. I want to have the datas on d:.
    How can I install the data directory on d:?

    0 0

    Hi,

    I'm using MySQL 5.7.14 x64 on a Windows Server 2012 R2. While trying to set up binary logging i faced the following problem: When ever I use the parameter binlog-do-db in the my.ini the MySQL Service will not restart. When I remove the line it works properly, even the bin-files appear. Is the binlog-do-db not longer supported in 5.7 since it works fine in 5.6?

    Thx

    Chris

    0 0

    Hi Guys, I have mysql running on ubuntu. When I type mysql it let me in without password. So I though adding a password to it. So I ran

    mysqladmin -u root password NEWPASSWORD

    Now I can login with password only if I type

    mysql -u root -p

    If I type only "mysql" it still let me in. Does anybody know what's happening?

    0 0

    Hello to all
    I have been attempting to get just a small replication testing environment set up and I am running into problems. I have mysql-5.5.51-linux2.6-x86_64.tar.gz but when I run make_replication_sandbox mysql-5.5.51-linux2.6-x86_64.tar.gz - it runs and runs builds directories under $SANDBOX_HOME then dies:
    installing and starting master
    can't start server
    error installing the master

    (512 )

    I cannot figure this out - I have used sandbox before and have not had this issue. SBDEBUG does not shed a whole of light on the issue. Any help would be most appreciated.

    0 0

    Hi there,

    I am trying to add binary logging into mysql 5.6.3 enterprise advanced edition on a windows 2012 server.

    I add the following to the my.ini file:

    log-bin=E:\MySQL\MySQL_Server_5_6\binlogs\bin

    When i restart mysql i get:

    ?MySQL: File 'E:\MySQL\MySQL_Server_5_6?inlogs?in.index' not found (Errcode: 22 - Invalid argument)
    2016-09-01 09:32:51 5536 [ERROR] Aborting

    I have done this a million times before on older versions of mysql in linux but first time in windows. Am i missing something? Thank you.

    0 0

    sir when i install MySQL Community Server 5.7 on my pc(window 8.1) and i choose
    any setup type like developer default or server only or full or custom then install path and data path directory change option is not available.
    I want install MySQL Community Server 5.7 in other directory but no directory change optin is avaiable(it is install in the default directory).
    please any one help me

    0 0

    I installed MySQL for Excel (version 16) but the text is not correct. For example, I cannot even read the text on the dialog box intended for reverting data.

    0 0

    How to start ,stop and restart mysql server from cmd line on windows

    can anyone tell me please.

    0 0

    I cant get mysql 5.1.73 running on RHEL 6.7 client .
    content from log below and config

    Log
    view /var/log/mysqld.log

    160909 15:11:22 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
    /usr/libexec/mysqld: Table 'mysql.plugin' doesn't exist
    160909 15:11:23 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
    160909 15:11:23 InnoDB: Initializing buffer pool, size = 8.0M
    160909 15:11:23 InnoDB: Completed initialization of buffer pool
    160909 15:11:23 InnoDB: Started; log sequence number 0 44233
    160909 15:11:23 [ERROR] Can't start server : Bind on unix socket: Address already in use
    160909 15:11:23 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
    160909 15:11:23 [ERROR] Aborting

    160909 15:11:23 InnoDB: Starting shutdown...
    160909 15:11:28 InnoDB: Shutdown completed; log sequence number 0 44233
    160909 15:11:28 [Note] /usr/libexec/mysqld: Shutdown complete

    160909 15:11:29 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

    mysql_upgrade
    root@oc8800070412 ~]# mysql_upgrade
    Looking for 'mysql' as: mysql
    Looking for 'mysqlcheck' as: mysqlcheck
    Running 'mysqlcheck' with connection arguments: '--port=3306' '--host=127.0.0.1' '--socket=/var/lib/mysql/mysql.sock'
    mysqlcheck: Got error: 2003: Can't connect to MySQL server on '127.0.0.1' (111) when trying to connect
    FATAL ERROR: Upgrade failed

    [root@oc8800070412 ~]# rpm -qa|grep mysql
    mysql-5.1.73-5.el6_7.1.x86_64
    mysql-libs-5.1.73-5.el6_7.1.x86_64
    mysql-server-5.1.73-5.el6_7.1.x86_64
    mysql-connector-java-5.1.17-6.el6.noarch
    [root@oc8800070412 ~]#


    user hsqldb
    all mysql folders have the owner
    hsqldb:x:96:96::/var/lib/hsqldb:/sbin/nologin

    no socket under /var/lib open


    [root@oc8800070412 ~]# netstat -an|grep LISTEN|grep /var
    unix 2 [ ACC ] STREAM LISTENING 19547 /var/run/libvirt/libvirt-sock
    unix 2 [ ACC ] STREAM LISTENING 19549 /var/run/libvirt/libvirt-sock-ro
    unix 2 [ ACC ] STREAM LISTENING 16630 /var/run/cups/cups.sock
    unix 2 [ ACC ] STREAM LISTENING 16761 @/var/run/hald/dbus-6TqyrzBfhN
    unix 2 [ ACC ] STREAM LISTENING 16716 /var/run/acpid.socket
    unix 2 [ ACC ] STREAM LISTENING 16188 /var/run/rpcbind.sock
    unix 2 [ ACC ] STREAM LISTENING 16393 /var/run/dbus/system_bus_socket
    unix 2 [ ACC ] STREAM LISTENING 17442 /var/run/sdp
    unix 2 [ ACC ] STREAM LISTENING 16754 @/var/run/hald/dbus-15kfxHi24X
    [root@oc8800070412 ~]# find / -type s|grep /var/run

    /var/run/rpcbind.sock
    /var/run/dbus/system_bus_socket
    /var/run/cups/cups.sock
    /var/run/libvirt/libvirt-sock-ro
    /var/run/libvirt/libvirt-sock
    /var/run/sdp
    /var/run/portreserve/socket


    /etc/init.d/mysqld start
    FAILED



    my.cnf
    [mysqld]
    datadir=/var/lib/mysql
    socket=/var/lib/mysql/mysql.sock
    user=hsqldb
    # Disabling symbolic-links is recommended to prevent assorted security risks
    symbolic-links=0

    [mysqld_safe]
    log-error=/var/log/mysqld.log
    pid-file=/var/run/mysqld/mysqld.pid

    [client]
    password=hsqldb
    port=3306
    host=127.0.0.1
    socket=/var/lib/mysql/mysql.sock

    ~

    0 0

    I've just set up mySQL workbench, on my MAC - El Capitan 10.11.2, I've set up a DB and selected forward engineer, but then get errors with the connection.

    I've checked under preferences and MYSQL is running.

    I've tried setting up a new connection but get the same errors.

    Overtime I click onto the "configure server management" screen I get stuck in a loop, and it does't let me do anything.

    Any help would be appreciated - thanks

    0 0
  • 09/19/16--11:15: innoDB looping? (1 reply)
  • Running version MySQL 5.1.73 on CentOS 6
    The database crashed and the only way I could get it working again was to drop the current one remove ib_log files and ibdata then do a restore from backup.
    But even with my buffer pool set to 13G which is 80% of available ram this message keeps repeating in mysqld.log which is 48MB in size and growing.

    160917 22:18:31InnoDB: Warning: difficult to find free blocks from
    InnoDB: the buffer pool (15448 search iterations)! Consider
    InnoDB: increasing the buffer pool size.
    InnoDB: It is also possible that in your Unix version
    InnoDB: fsync is very slow, or completely frozen inside
    InnoDB: the OS kernel. Then upgrading to a newer version
    InnoDB: of your operating system may help. Look at the
    InnoDB: number of fsyncs in diagnostic info below.
    InnoDB: Pending flushes (fsync) log: 0; buffer pool: 0
    InnoDB: 142 OS file reads, 0 OS file writes, 0 OS fsyncs
    InnoDB: Starting InnoDB Monitor to print further
    InnoDB: diagnostics to the standard output.

    I can not consider increasing the buffer pool size.
    I have no clue why it is doing this.
    The old ibdata file was 43GB in size so I assumed that is why the system crashed twice today. I only have 16GB of ram.

    And mysql shows InnoDB is supported when before I restored from back up it was missing from this list.

    mysql> show engines;
    +------------+---------+------------------------------------------------------------+--------------+------+------------+
    | Engine | Support | Comment | Transactions | XA | Savepoints |
    +------------+---------+------------------------------------------------------------+--------------+------+------------+
    | MRG_MYISAM | YES | Collection of identical MyISAM tables | NO | NO | NO |
    | CSV | YES | CSV storage engine | NO | NO | NO |
    | MyISAM | DEFAULT | Default engine as of MySQL 3.23 with great performance | NO | NO | NO |
    | InnoDB | YES | Supports transactions, row-level locking, and foreign keys | YES | YES | YES |
    | MEMORY | YES | Hash based, stored in memory, useful for temporary tables | NO | NO | NO |
    +------------+---------+------------------------------------------------------------+--------------+------+------------+
    5 rows in set (0.00 sec)

    I have no clue what to do to fix this...
    Thanks

    0 0

    Hello,

    I have an error when starting the mysql server, The server quit without updating PID file , then it says where the PID file is, - usr/var/mysql but there is no mysql in var its an empty folder? What do I need in there?

    Thanks

    0 0

    Hi All, new to MySQL, trying to get it installed & working on Mac El Capitan 10.11.6.
    I've got the 5.7.15 daemon successfully installed & can connect to it via shell commands in mysql/bin.
    I've got Workbench 6.3.7 successfully installed & can connect to the daemon.
    I tried to install Utilities 1.6.4 and after authenticating my Mac admin user account, the installer gave a warning that my OS is incompatible with this version of Utilities, then after taking the "continue anyway" option, got an error:
    "The Installation Failed", "The Installer encountered an error that caused the installation to fail. Contact the software manufacturer for assistance."

    The downloads page lists this 1.6.4 version as the one for 10.11.x, hmmm

    Any thoughts?, should I report this as a bug? - thx!

    0 0

    I already installed mysql server 5.5 on my server and it is running fine in production. So now i want to install mysql-server 5.6.10 or above in a same server where mysql server 5.5 is running. I want to install separate mysql instance in separate folder and all other option. Also i want install mysql fabric over mysql server 5.6. Please give me step by step process how to do this installation.