MySQL error: The partition with /var/lib/mysql is too full!












15















I get this error when trying to start MySQL: The partition with /var/lib/mysql is too full!



Here is the output of df -h:



Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1 455G 77G 356G 18% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 1,9G 4,0K 1,9G 1% /dev
tmpfs 387M 1,3M 386M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 1,9G 1,2M 1,9G 1% /run/shm
none 100M 28K 100M 1% /run/user


This shows that the partition is nowhere near full.










share|improve this question

























  • what is the size of the binairy log in /var/lib/mysql/?

    – Rinzwind
    Jun 13 '14 at 19:19











  • I'm sorry if this is a dumb question, but which one is the correct log: ib_logfile0 or ib_logfile1?

    – rocketgear
    Jun 13 '14 at 19:21











  • hmm I would think "server-bin.*" or "mysql-bin.*".

    – Rinzwind
    Jun 13 '14 at 19:24











  • There seem to be no such files in /var/lib/mysql. I've even reinstalled mysql-server, but nothing changed.

    – rocketgear
    Jun 13 '14 at 19:36













  • whcih version are u you using please describe that

    – Chinmaya B
    Jun 14 '14 at 9:55
















15















I get this error when trying to start MySQL: The partition with /var/lib/mysql is too full!



Here is the output of df -h:



Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1 455G 77G 356G 18% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 1,9G 4,0K 1,9G 1% /dev
tmpfs 387M 1,3M 386M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 1,9G 1,2M 1,9G 1% /run/shm
none 100M 28K 100M 1% /run/user


This shows that the partition is nowhere near full.










share|improve this question

























  • what is the size of the binairy log in /var/lib/mysql/?

    – Rinzwind
    Jun 13 '14 at 19:19











  • I'm sorry if this is a dumb question, but which one is the correct log: ib_logfile0 or ib_logfile1?

    – rocketgear
    Jun 13 '14 at 19:21











  • hmm I would think "server-bin.*" or "mysql-bin.*".

    – Rinzwind
    Jun 13 '14 at 19:24











  • There seem to be no such files in /var/lib/mysql. I've even reinstalled mysql-server, but nothing changed.

    – rocketgear
    Jun 13 '14 at 19:36













  • whcih version are u you using please describe that

    – Chinmaya B
    Jun 14 '14 at 9:55














15












15








15


1






I get this error when trying to start MySQL: The partition with /var/lib/mysql is too full!



Here is the output of df -h:



Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1 455G 77G 356G 18% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 1,9G 4,0K 1,9G 1% /dev
tmpfs 387M 1,3M 386M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 1,9G 1,2M 1,9G 1% /run/shm
none 100M 28K 100M 1% /run/user


This shows that the partition is nowhere near full.










share|improve this question
















I get this error when trying to start MySQL: The partition with /var/lib/mysql is too full!



Here is the output of df -h:



Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1 455G 77G 356G 18% /
none 4,0K 0 4,0K 0% /sys/fs/cgroup
udev 1,9G 4,0K 1,9G 1% /dev
tmpfs 387M 1,3M 386M 1% /run
none 5,0M 0 5,0M 0% /run/lock
none 1,9G 1,2M 1,9G 1% /run/shm
none 100M 28K 100M 1% /run/user


This shows that the partition is nowhere near full.







mysql






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jun 14 '14 at 10:48









Parto

9,4561965105




9,4561965105










asked Jun 13 '14 at 19:07









rocketgearrocketgear

304127




304127













  • what is the size of the binairy log in /var/lib/mysql/?

    – Rinzwind
    Jun 13 '14 at 19:19











  • I'm sorry if this is a dumb question, but which one is the correct log: ib_logfile0 or ib_logfile1?

    – rocketgear
    Jun 13 '14 at 19:21











  • hmm I would think "server-bin.*" or "mysql-bin.*".

    – Rinzwind
    Jun 13 '14 at 19:24











  • There seem to be no such files in /var/lib/mysql. I've even reinstalled mysql-server, but nothing changed.

    – rocketgear
    Jun 13 '14 at 19:36













  • whcih version are u you using please describe that

    – Chinmaya B
    Jun 14 '14 at 9:55



















  • what is the size of the binairy log in /var/lib/mysql/?

    – Rinzwind
    Jun 13 '14 at 19:19











  • I'm sorry if this is a dumb question, but which one is the correct log: ib_logfile0 or ib_logfile1?

    – rocketgear
    Jun 13 '14 at 19:21











  • hmm I would think "server-bin.*" or "mysql-bin.*".

    – Rinzwind
    Jun 13 '14 at 19:24











  • There seem to be no such files in /var/lib/mysql. I've even reinstalled mysql-server, but nothing changed.

    – rocketgear
    Jun 13 '14 at 19:36













  • whcih version are u you using please describe that

    – Chinmaya B
    Jun 14 '14 at 9:55

















what is the size of the binairy log in /var/lib/mysql/?

– Rinzwind
Jun 13 '14 at 19:19





what is the size of the binairy log in /var/lib/mysql/?

– Rinzwind
Jun 13 '14 at 19:19













I'm sorry if this is a dumb question, but which one is the correct log: ib_logfile0 or ib_logfile1?

– rocketgear
Jun 13 '14 at 19:21





I'm sorry if this is a dumb question, but which one is the correct log: ib_logfile0 or ib_logfile1?

– rocketgear
Jun 13 '14 at 19:21













hmm I would think "server-bin.*" or "mysql-bin.*".

– Rinzwind
Jun 13 '14 at 19:24





hmm I would think "server-bin.*" or "mysql-bin.*".

– Rinzwind
Jun 13 '14 at 19:24













There seem to be no such files in /var/lib/mysql. I've even reinstalled mysql-server, but nothing changed.

– rocketgear
Jun 13 '14 at 19:36







There seem to be no such files in /var/lib/mysql. I've even reinstalled mysql-server, but nothing changed.

– rocketgear
Jun 13 '14 at 19:36















whcih version are u you using please describe that

– Chinmaya B
Jun 14 '14 at 9:55





whcih version are u you using please describe that

– Chinmaya B
Jun 14 '14 at 9:55










8 Answers
8






active

oldest

votes


















12














I finally fixed it by running sudo /etc/init.d/mysql start. I just had to insert sudo in front of the command.






share|improve this answer



















  • 1





    How can this fix the issue? The OP got this error when trying to start MySQL, and this command do nothing to help.

    – Paul Lo
    Feb 5 '15 at 6:30











  • @PaulLo it really helps. I forgot to add sudo.

    – shukshin.ivan
    Jan 14 '16 at 14:54






  • 4





    I don't understand how this got 8 upvotes.

    – Parth Thakkar
    Jun 12 '16 at 12:56











  • This fixed it for me. I don't know why this works but it does. I was getting the error saying the partition is full when trying to start mysql. I ran the command using sudo and mysql started just fine.

    – Gavin
    Aug 12 '16 at 19:23











  • Wow, sudo service mysql restart was saying everything was good, but running this command actually fixed the problem. I don't get the difference ...

    – George Dimitriadis
    Sep 23 '17 at 15:16



















4














try this:



sudo service mysql stop
sudo service mysql start





share|improve this answer





















  • 1





    i had the same problem 'The partition with /var/lib/mysql is too full!' and i fixed it this way!

    – Steve Dörre
    Sep 17 '14 at 9:23











  • @KasiyA yes it is an answer to the question (but it is the same as the answer given by rocketgear himself) (stop/start will fix this notice)

    – Rinzwind
    Sep 17 '14 at 9:45













  • @Rinzwind uhh. sorry

    – αғsнιη
    Sep 17 '14 at 11:13











  • in my case sudo /etc/init.d/mysql start doesn't work....

    – Steve Dörre
    Sep 17 '14 at 17:34



















3














In my case the error resulted of changing the ip address on the server.



cat /var/log/mysql/error.log

150427 23:01:08 InnoDB: 5.5.43 started; log sequence number 11731761
150427 23:01:08 [Note] Server hostname (bind-address): '192.168.1.234'; port: 3306
150427 23:01:08 [Note] - '192.168.1.234' resolves to '192.168.1.234';
150427 23:01:08 [Note] Server socket created on IP: '192.168.1.234'.
150427 23:01:08 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
150427 23:01:08 [ERROR] Do you already have another mysqld server running on port: 3306 ?
150427 23:01:08 [ERROR] Aborting


changing the



 bind-address       


in



 /etc/mysql/my.cnf


to the current ip
and restarting the server



sudo /etc/init.d/mysql start


solved the problem






share|improve this answer































    1














    I have faced same issue, in my case there is another mysql service was running



    $ ps -aux | grep mysql
    mysql 7241 0.0 5.1 562600 52812 ? Ssl 13:36 0:02 /usr/sbin/mysql
    ubuntu 13580 0.0 0.0 10468 916 pts/0 S+ 15:50 0:00 grep --color=au

    $ sudo kill 7241


    Then I started mysql.



    $ sudo /etc/init.d/mysql start
    * Starting MySQL database server mysqld [ OK ]





    share|improve this answer































      1














      There are two possible problems with Mysql package:





      1. Really a space problem:



        Many distributions have their /var directory in the original root partition which is not made big enough by default to hold real-life data. They usually create separate partition for /usr with tons of space



        Check this and you will get full details and your answer



        https://serverfault.com/questions/256729/error-the-partition-with-var-lib-mysql-is-too-full




      2. It is a bug which might not have been fixed and to fix it follow this article:



        https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/118523








      share|improve this answer

































        0














        In the partition /var there are several directories that accumulate many files which can fill up the partition.



        In my case logs are saved in /var/logs filling up /var prevented me from starting mysql.



        I deleted some of those old logs and that solved my problem. If you do not have log rotation it is better that you try acerlo since if you do not have this process the logs can add up to many GB in a single file.






        share|improve this answer

































          0














          In my case none of the above helped, the problem was that /var was really full:



          $ df -h
          ...
          /dev/sda3 2.7G 2.7G 0 100% /var


          So I just used ncdu to check what was taking so much space:



          sudo ncdu /var


          Delete some useless stuff with d, restarted



          sudo systemctl restart mysql.service


          And voilà, everything working now.






          share|improve this answer































            -1














            Run the command sudo apt-get --reinstall install mysql-server to re-install MySQL. It will re-create the missing directories and allow you to start the server again.






            share|improve this answer
























            • This is what I got: dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. How do I use --configure?

              – rocketgear
              Jun 13 '14 at 19:51













            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f482923%2fmysql-error-the-partition-with-var-lib-mysql-is-too-full%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            8 Answers
            8






            active

            oldest

            votes








            8 Answers
            8






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            12














            I finally fixed it by running sudo /etc/init.d/mysql start. I just had to insert sudo in front of the command.






            share|improve this answer



















            • 1





              How can this fix the issue? The OP got this error when trying to start MySQL, and this command do nothing to help.

              – Paul Lo
              Feb 5 '15 at 6:30











            • @PaulLo it really helps. I forgot to add sudo.

              – shukshin.ivan
              Jan 14 '16 at 14:54






            • 4





              I don't understand how this got 8 upvotes.

              – Parth Thakkar
              Jun 12 '16 at 12:56











            • This fixed it for me. I don't know why this works but it does. I was getting the error saying the partition is full when trying to start mysql. I ran the command using sudo and mysql started just fine.

              – Gavin
              Aug 12 '16 at 19:23











            • Wow, sudo service mysql restart was saying everything was good, but running this command actually fixed the problem. I don't get the difference ...

              – George Dimitriadis
              Sep 23 '17 at 15:16
















            12














            I finally fixed it by running sudo /etc/init.d/mysql start. I just had to insert sudo in front of the command.






            share|improve this answer



















            • 1





              How can this fix the issue? The OP got this error when trying to start MySQL, and this command do nothing to help.

              – Paul Lo
              Feb 5 '15 at 6:30











            • @PaulLo it really helps. I forgot to add sudo.

              – shukshin.ivan
              Jan 14 '16 at 14:54






            • 4





              I don't understand how this got 8 upvotes.

              – Parth Thakkar
              Jun 12 '16 at 12:56











            • This fixed it for me. I don't know why this works but it does. I was getting the error saying the partition is full when trying to start mysql. I ran the command using sudo and mysql started just fine.

              – Gavin
              Aug 12 '16 at 19:23











            • Wow, sudo service mysql restart was saying everything was good, but running this command actually fixed the problem. I don't get the difference ...

              – George Dimitriadis
              Sep 23 '17 at 15:16














            12












            12








            12







            I finally fixed it by running sudo /etc/init.d/mysql start. I just had to insert sudo in front of the command.






            share|improve this answer













            I finally fixed it by running sudo /etc/init.d/mysql start. I just had to insert sudo in front of the command.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jun 14 '14 at 9:33









            rocketgearrocketgear

            304127




            304127








            • 1





              How can this fix the issue? The OP got this error when trying to start MySQL, and this command do nothing to help.

              – Paul Lo
              Feb 5 '15 at 6:30











            • @PaulLo it really helps. I forgot to add sudo.

              – shukshin.ivan
              Jan 14 '16 at 14:54






            • 4





              I don't understand how this got 8 upvotes.

              – Parth Thakkar
              Jun 12 '16 at 12:56











            • This fixed it for me. I don't know why this works but it does. I was getting the error saying the partition is full when trying to start mysql. I ran the command using sudo and mysql started just fine.

              – Gavin
              Aug 12 '16 at 19:23











            • Wow, sudo service mysql restart was saying everything was good, but running this command actually fixed the problem. I don't get the difference ...

              – George Dimitriadis
              Sep 23 '17 at 15:16














            • 1





              How can this fix the issue? The OP got this error when trying to start MySQL, and this command do nothing to help.

              – Paul Lo
              Feb 5 '15 at 6:30











            • @PaulLo it really helps. I forgot to add sudo.

              – shukshin.ivan
              Jan 14 '16 at 14:54






            • 4





              I don't understand how this got 8 upvotes.

              – Parth Thakkar
              Jun 12 '16 at 12:56











            • This fixed it for me. I don't know why this works but it does. I was getting the error saying the partition is full when trying to start mysql. I ran the command using sudo and mysql started just fine.

              – Gavin
              Aug 12 '16 at 19:23











            • Wow, sudo service mysql restart was saying everything was good, but running this command actually fixed the problem. I don't get the difference ...

              – George Dimitriadis
              Sep 23 '17 at 15:16








            1




            1





            How can this fix the issue? The OP got this error when trying to start MySQL, and this command do nothing to help.

            – Paul Lo
            Feb 5 '15 at 6:30





            How can this fix the issue? The OP got this error when trying to start MySQL, and this command do nothing to help.

            – Paul Lo
            Feb 5 '15 at 6:30













            @PaulLo it really helps. I forgot to add sudo.

            – shukshin.ivan
            Jan 14 '16 at 14:54





            @PaulLo it really helps. I forgot to add sudo.

            – shukshin.ivan
            Jan 14 '16 at 14:54




            4




            4





            I don't understand how this got 8 upvotes.

            – Parth Thakkar
            Jun 12 '16 at 12:56





            I don't understand how this got 8 upvotes.

            – Parth Thakkar
            Jun 12 '16 at 12:56













            This fixed it for me. I don't know why this works but it does. I was getting the error saying the partition is full when trying to start mysql. I ran the command using sudo and mysql started just fine.

            – Gavin
            Aug 12 '16 at 19:23





            This fixed it for me. I don't know why this works but it does. I was getting the error saying the partition is full when trying to start mysql. I ran the command using sudo and mysql started just fine.

            – Gavin
            Aug 12 '16 at 19:23













            Wow, sudo service mysql restart was saying everything was good, but running this command actually fixed the problem. I don't get the difference ...

            – George Dimitriadis
            Sep 23 '17 at 15:16





            Wow, sudo service mysql restart was saying everything was good, but running this command actually fixed the problem. I don't get the difference ...

            – George Dimitriadis
            Sep 23 '17 at 15:16













            4














            try this:



            sudo service mysql stop
            sudo service mysql start





            share|improve this answer





















            • 1





              i had the same problem 'The partition with /var/lib/mysql is too full!' and i fixed it this way!

              – Steve Dörre
              Sep 17 '14 at 9:23











            • @KasiyA yes it is an answer to the question (but it is the same as the answer given by rocketgear himself) (stop/start will fix this notice)

              – Rinzwind
              Sep 17 '14 at 9:45













            • @Rinzwind uhh. sorry

              – αғsнιη
              Sep 17 '14 at 11:13











            • in my case sudo /etc/init.d/mysql start doesn't work....

              – Steve Dörre
              Sep 17 '14 at 17:34
















            4














            try this:



            sudo service mysql stop
            sudo service mysql start





            share|improve this answer





















            • 1





              i had the same problem 'The partition with /var/lib/mysql is too full!' and i fixed it this way!

              – Steve Dörre
              Sep 17 '14 at 9:23











            • @KasiyA yes it is an answer to the question (but it is the same as the answer given by rocketgear himself) (stop/start will fix this notice)

              – Rinzwind
              Sep 17 '14 at 9:45













            • @Rinzwind uhh. sorry

              – αғsнιη
              Sep 17 '14 at 11:13











            • in my case sudo /etc/init.d/mysql start doesn't work....

              – Steve Dörre
              Sep 17 '14 at 17:34














            4












            4








            4







            try this:



            sudo service mysql stop
            sudo service mysql start





            share|improve this answer















            try this:



            sudo service mysql stop
            sudo service mysql start






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Sep 17 '14 at 8:29









            Parto

            9,4561965105




            9,4561965105










            answered Sep 17 '14 at 8:20









            Steve DörreSteve Dörre

            511




            511








            • 1





              i had the same problem 'The partition with /var/lib/mysql is too full!' and i fixed it this way!

              – Steve Dörre
              Sep 17 '14 at 9:23











            • @KasiyA yes it is an answer to the question (but it is the same as the answer given by rocketgear himself) (stop/start will fix this notice)

              – Rinzwind
              Sep 17 '14 at 9:45













            • @Rinzwind uhh. sorry

              – αғsнιη
              Sep 17 '14 at 11:13











            • in my case sudo /etc/init.d/mysql start doesn't work....

              – Steve Dörre
              Sep 17 '14 at 17:34














            • 1





              i had the same problem 'The partition with /var/lib/mysql is too full!' and i fixed it this way!

              – Steve Dörre
              Sep 17 '14 at 9:23











            • @KasiyA yes it is an answer to the question (but it is the same as the answer given by rocketgear himself) (stop/start will fix this notice)

              – Rinzwind
              Sep 17 '14 at 9:45













            • @Rinzwind uhh. sorry

              – αғsнιη
              Sep 17 '14 at 11:13











            • in my case sudo /etc/init.d/mysql start doesn't work....

              – Steve Dörre
              Sep 17 '14 at 17:34








            1




            1





            i had the same problem 'The partition with /var/lib/mysql is too full!' and i fixed it this way!

            – Steve Dörre
            Sep 17 '14 at 9:23





            i had the same problem 'The partition with /var/lib/mysql is too full!' and i fixed it this way!

            – Steve Dörre
            Sep 17 '14 at 9:23













            @KasiyA yes it is an answer to the question (but it is the same as the answer given by rocketgear himself) (stop/start will fix this notice)

            – Rinzwind
            Sep 17 '14 at 9:45







            @KasiyA yes it is an answer to the question (but it is the same as the answer given by rocketgear himself) (stop/start will fix this notice)

            – Rinzwind
            Sep 17 '14 at 9:45















            @Rinzwind uhh. sorry

            – αғsнιη
            Sep 17 '14 at 11:13





            @Rinzwind uhh. sorry

            – αғsнιη
            Sep 17 '14 at 11:13













            in my case sudo /etc/init.d/mysql start doesn't work....

            – Steve Dörre
            Sep 17 '14 at 17:34





            in my case sudo /etc/init.d/mysql start doesn't work....

            – Steve Dörre
            Sep 17 '14 at 17:34











            3














            In my case the error resulted of changing the ip address on the server.



            cat /var/log/mysql/error.log

            150427 23:01:08 InnoDB: 5.5.43 started; log sequence number 11731761
            150427 23:01:08 [Note] Server hostname (bind-address): '192.168.1.234'; port: 3306
            150427 23:01:08 [Note] - '192.168.1.234' resolves to '192.168.1.234';
            150427 23:01:08 [Note] Server socket created on IP: '192.168.1.234'.
            150427 23:01:08 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
            150427 23:01:08 [ERROR] Do you already have another mysqld server running on port: 3306 ?
            150427 23:01:08 [ERROR] Aborting


            changing the



             bind-address       


            in



             /etc/mysql/my.cnf


            to the current ip
            and restarting the server



            sudo /etc/init.d/mysql start


            solved the problem






            share|improve this answer




























              3














              In my case the error resulted of changing the ip address on the server.



              cat /var/log/mysql/error.log

              150427 23:01:08 InnoDB: 5.5.43 started; log sequence number 11731761
              150427 23:01:08 [Note] Server hostname (bind-address): '192.168.1.234'; port: 3306
              150427 23:01:08 [Note] - '192.168.1.234' resolves to '192.168.1.234';
              150427 23:01:08 [Note] Server socket created on IP: '192.168.1.234'.
              150427 23:01:08 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
              150427 23:01:08 [ERROR] Do you already have another mysqld server running on port: 3306 ?
              150427 23:01:08 [ERROR] Aborting


              changing the



               bind-address       


              in



               /etc/mysql/my.cnf


              to the current ip
              and restarting the server



              sudo /etc/init.d/mysql start


              solved the problem






              share|improve this answer


























                3












                3








                3







                In my case the error resulted of changing the ip address on the server.



                cat /var/log/mysql/error.log

                150427 23:01:08 InnoDB: 5.5.43 started; log sequence number 11731761
                150427 23:01:08 [Note] Server hostname (bind-address): '192.168.1.234'; port: 3306
                150427 23:01:08 [Note] - '192.168.1.234' resolves to '192.168.1.234';
                150427 23:01:08 [Note] Server socket created on IP: '192.168.1.234'.
                150427 23:01:08 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
                150427 23:01:08 [ERROR] Do you already have another mysqld server running on port: 3306 ?
                150427 23:01:08 [ERROR] Aborting


                changing the



                 bind-address       


                in



                 /etc/mysql/my.cnf


                to the current ip
                and restarting the server



                sudo /etc/init.d/mysql start


                solved the problem






                share|improve this answer













                In my case the error resulted of changing the ip address on the server.



                cat /var/log/mysql/error.log

                150427 23:01:08 InnoDB: 5.5.43 started; log sequence number 11731761
                150427 23:01:08 [Note] Server hostname (bind-address): '192.168.1.234'; port: 3306
                150427 23:01:08 [Note] - '192.168.1.234' resolves to '192.168.1.234';
                150427 23:01:08 [Note] Server socket created on IP: '192.168.1.234'.
                150427 23:01:08 [ERROR] Can't start server: Bind on TCP/IP port: Cannot assign requested address
                150427 23:01:08 [ERROR] Do you already have another mysqld server running on port: 3306 ?
                150427 23:01:08 [ERROR] Aborting


                changing the



                 bind-address       


                in



                 /etc/mysql/my.cnf


                to the current ip
                and restarting the server



                sudo /etc/init.d/mysql start


                solved the problem







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Apr 27 '15 at 21:11









                user1007017user1007017

                1311




                1311























                    1














                    I have faced same issue, in my case there is another mysql service was running



                    $ ps -aux | grep mysql
                    mysql 7241 0.0 5.1 562600 52812 ? Ssl 13:36 0:02 /usr/sbin/mysql
                    ubuntu 13580 0.0 0.0 10468 916 pts/0 S+ 15:50 0:00 grep --color=au

                    $ sudo kill 7241


                    Then I started mysql.



                    $ sudo /etc/init.d/mysql start
                    * Starting MySQL database server mysqld [ OK ]





                    share|improve this answer




























                      1














                      I have faced same issue, in my case there is another mysql service was running



                      $ ps -aux | grep mysql
                      mysql 7241 0.0 5.1 562600 52812 ? Ssl 13:36 0:02 /usr/sbin/mysql
                      ubuntu 13580 0.0 0.0 10468 916 pts/0 S+ 15:50 0:00 grep --color=au

                      $ sudo kill 7241


                      Then I started mysql.



                      $ sudo /etc/init.d/mysql start
                      * Starting MySQL database server mysqld [ OK ]





                      share|improve this answer


























                        1












                        1








                        1







                        I have faced same issue, in my case there is another mysql service was running



                        $ ps -aux | grep mysql
                        mysql 7241 0.0 5.1 562600 52812 ? Ssl 13:36 0:02 /usr/sbin/mysql
                        ubuntu 13580 0.0 0.0 10468 916 pts/0 S+ 15:50 0:00 grep --color=au

                        $ sudo kill 7241


                        Then I started mysql.



                        $ sudo /etc/init.d/mysql start
                        * Starting MySQL database server mysqld [ OK ]





                        share|improve this answer













                        I have faced same issue, in my case there is another mysql service was running



                        $ ps -aux | grep mysql
                        mysql 7241 0.0 5.1 562600 52812 ? Ssl 13:36 0:02 /usr/sbin/mysql
                        ubuntu 13580 0.0 0.0 10468 916 pts/0 S+ 15:50 0:00 grep --color=au

                        $ sudo kill 7241


                        Then I started mysql.



                        $ sudo /etc/init.d/mysql start
                        * Starting MySQL database server mysqld [ OK ]






                        share|improve this answer












                        share|improve this answer



                        share|improve this answer










                        answered Nov 26 '14 at 15:59









                        rabrab

                        1112




                        1112























                            1














                            There are two possible problems with Mysql package:





                            1. Really a space problem:



                              Many distributions have their /var directory in the original root partition which is not made big enough by default to hold real-life data. They usually create separate partition for /usr with tons of space



                              Check this and you will get full details and your answer



                              https://serverfault.com/questions/256729/error-the-partition-with-var-lib-mysql-is-too-full




                            2. It is a bug which might not have been fixed and to fix it follow this article:



                              https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/118523








                            share|improve this answer






























                              1














                              There are two possible problems with Mysql package:





                              1. Really a space problem:



                                Many distributions have their /var directory in the original root partition which is not made big enough by default to hold real-life data. They usually create separate partition for /usr with tons of space



                                Check this and you will get full details and your answer



                                https://serverfault.com/questions/256729/error-the-partition-with-var-lib-mysql-is-too-full




                              2. It is a bug which might not have been fixed and to fix it follow this article:



                                https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/118523








                              share|improve this answer




























                                1












                                1








                                1







                                There are two possible problems with Mysql package:





                                1. Really a space problem:



                                  Many distributions have their /var directory in the original root partition which is not made big enough by default to hold real-life data. They usually create separate partition for /usr with tons of space



                                  Check this and you will get full details and your answer



                                  https://serverfault.com/questions/256729/error-the-partition-with-var-lib-mysql-is-too-full




                                2. It is a bug which might not have been fixed and to fix it follow this article:



                                  https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/118523








                                share|improve this answer















                                There are two possible problems with Mysql package:





                                1. Really a space problem:



                                  Many distributions have their /var directory in the original root partition which is not made big enough by default to hold real-life data. They usually create separate partition for /usr with tons of space



                                  Check this and you will get full details and your answer



                                  https://serverfault.com/questions/256729/error-the-partition-with-var-lib-mysql-is-too-full




                                2. It is a bug which might not have been fixed and to fix it follow this article:



                                  https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/118523









                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Apr 13 '17 at 12:14









                                Community

                                1




                                1










                                answered Jun 14 '14 at 9:53









                                Chinmaya BChinmaya B

                                1,83741536




                                1,83741536























                                    0














                                    In the partition /var there are several directories that accumulate many files which can fill up the partition.



                                    In my case logs are saved in /var/logs filling up /var prevented me from starting mysql.



                                    I deleted some of those old logs and that solved my problem. If you do not have log rotation it is better that you try acerlo since if you do not have this process the logs can add up to many GB in a single file.






                                    share|improve this answer






























                                      0














                                      In the partition /var there are several directories that accumulate many files which can fill up the partition.



                                      In my case logs are saved in /var/logs filling up /var prevented me from starting mysql.



                                      I deleted some of those old logs and that solved my problem. If you do not have log rotation it is better that you try acerlo since if you do not have this process the logs can add up to many GB in a single file.






                                      share|improve this answer




























                                        0












                                        0








                                        0







                                        In the partition /var there are several directories that accumulate many files which can fill up the partition.



                                        In my case logs are saved in /var/logs filling up /var prevented me from starting mysql.



                                        I deleted some of those old logs and that solved my problem. If you do not have log rotation it is better that you try acerlo since if you do not have this process the logs can add up to many GB in a single file.






                                        share|improve this answer















                                        In the partition /var there are several directories that accumulate many files which can fill up the partition.



                                        In my case logs are saved in /var/logs filling up /var prevented me from starting mysql.



                                        I deleted some of those old logs and that solved my problem. If you do not have log rotation it is better that you try acerlo since if you do not have this process the logs can add up to many GB in a single file.







                                        share|improve this answer














                                        share|improve this answer



                                        share|improve this answer








                                        edited Jan 21 '17 at 5:27









                                        Zanna

                                        51k13138242




                                        51k13138242










                                        answered Jan 20 '17 at 14:21









                                        AlainAlain

                                        1




                                        1























                                            0














                                            In my case none of the above helped, the problem was that /var was really full:



                                            $ df -h
                                            ...
                                            /dev/sda3 2.7G 2.7G 0 100% /var


                                            So I just used ncdu to check what was taking so much space:



                                            sudo ncdu /var


                                            Delete some useless stuff with d, restarted



                                            sudo systemctl restart mysql.service


                                            And voilà, everything working now.






                                            share|improve this answer




























                                              0














                                              In my case none of the above helped, the problem was that /var was really full:



                                              $ df -h
                                              ...
                                              /dev/sda3 2.7G 2.7G 0 100% /var


                                              So I just used ncdu to check what was taking so much space:



                                              sudo ncdu /var


                                              Delete some useless stuff with d, restarted



                                              sudo systemctl restart mysql.service


                                              And voilà, everything working now.






                                              share|improve this answer


























                                                0












                                                0








                                                0







                                                In my case none of the above helped, the problem was that /var was really full:



                                                $ df -h
                                                ...
                                                /dev/sda3 2.7G 2.7G 0 100% /var


                                                So I just used ncdu to check what was taking so much space:



                                                sudo ncdu /var


                                                Delete some useless stuff with d, restarted



                                                sudo systemctl restart mysql.service


                                                And voilà, everything working now.






                                                share|improve this answer













                                                In my case none of the above helped, the problem was that /var was really full:



                                                $ df -h
                                                ...
                                                /dev/sda3 2.7G 2.7G 0 100% /var


                                                So I just used ncdu to check what was taking so much space:



                                                sudo ncdu /var


                                                Delete some useless stuff with d, restarted



                                                sudo systemctl restart mysql.service


                                                And voilà, everything working now.







                                                share|improve this answer












                                                share|improve this answer



                                                share|improve this answer










                                                answered Jan 31 at 6:06









                                                Pablo BianchiPablo Bianchi

                                                2,94521535




                                                2,94521535























                                                    -1














                                                    Run the command sudo apt-get --reinstall install mysql-server to re-install MySQL. It will re-create the missing directories and allow you to start the server again.






                                                    share|improve this answer
























                                                    • This is what I got: dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. How do I use --configure?

                                                      – rocketgear
                                                      Jun 13 '14 at 19:51


















                                                    -1














                                                    Run the command sudo apt-get --reinstall install mysql-server to re-install MySQL. It will re-create the missing directories and allow you to start the server again.






                                                    share|improve this answer
























                                                    • This is what I got: dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. How do I use --configure?

                                                      – rocketgear
                                                      Jun 13 '14 at 19:51
















                                                    -1












                                                    -1








                                                    -1







                                                    Run the command sudo apt-get --reinstall install mysql-server to re-install MySQL. It will re-create the missing directories and allow you to start the server again.






                                                    share|improve this answer













                                                    Run the command sudo apt-get --reinstall install mysql-server to re-install MySQL. It will re-create the missing directories and allow you to start the server again.







                                                    share|improve this answer












                                                    share|improve this answer



                                                    share|improve this answer










                                                    answered Jun 13 '14 at 19:39









                                                    BertBert

                                                    1,715911




                                                    1,715911













                                                    • This is what I got: dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. How do I use --configure?

                                                      – rocketgear
                                                      Jun 13 '14 at 19:51





















                                                    • This is what I got: dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. How do I use --configure?

                                                      – rocketgear
                                                      Jun 13 '14 at 19:51



















                                                    This is what I got: dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. How do I use --configure?

                                                    – rocketgear
                                                    Jun 13 '14 at 19:51







                                                    This is what I got: dpkg: dependency problems prevent configuration of mysql-server: mysql-server depends on mysql-server-5.5; however: Package mysql-server-5.5 is not configured yet. How do I use --configure?

                                                    – rocketgear
                                                    Jun 13 '14 at 19:51




















                                                    draft saved

                                                    draft discarded




















































                                                    Thanks for contributing an answer to Ask Ubuntu!


                                                    • Please be sure to answer the question. Provide details and share your research!

                                                    But avoid



                                                    • Asking for help, clarification, or responding to other answers.

                                                    • Making statements based on opinion; back them up with references or personal experience.


                                                    To learn more, see our tips on writing great answers.




                                                    draft saved


                                                    draft discarded














                                                    StackExchange.ready(
                                                    function () {
                                                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f482923%2fmysql-error-the-partition-with-var-lib-mysql-is-too-full%23new-answer', 'question_page');
                                                    }
                                                    );

                                                    Post as a guest















                                                    Required, but never shown





















































                                                    Required, but never shown














                                                    Required, but never shown












                                                    Required, but never shown







                                                    Required, but never shown

































                                                    Required, but never shown














                                                    Required, but never shown












                                                    Required, but never shown







                                                    Required, but never shown







                                                    Popular posts from this blog

                                                    Questions related to Moebius Transform of Characteristic Function of the Primes

                                                    List of scandals in India

                                                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?