w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Ubuntu - 12.04 - MySql won't start by using service mysql start
service mysql stop will only work if mysql was started by one of the service start methods, such as service mysql start or start mysql, or /etc/init.d/mysqld start. If you start mysql by launching the daemon directly without using upstart or init.d, then that is why you get the "unknown instance" error. Of course, all of those valid options probably need to be prefixed with sudo if you aren't logged in as root. Before worrying about the wordpress 500 error, I would first make sure that mysql is started correctly. If it is still running stop it with the kill command. Then, try sudo service mysql start. Then, use ps -ef to see if mysql is running. If not, check the mysql log files (EDIT: also check dmesg). If it is running, try to connect to it with the the mysql command and the cred

Categories : Mysql

xampp MySQL does not start
You already have a version of mySQL installed on this machine that is using port 3306. Go into the most recent my.ini file and change the port to 3307. Restart the mySQL service and see if it comes up.

Categories : Mysql

Cannot start mysql through java
Change mysqld to mysqld.exe, as cmd does it internally for us(looks for mysqld.bat, then mysqld.cmd, mysqld.com and finally mysqld.exe). Java ProcessBuilder won't go into so much trouble.

Categories : Java

Mysql Service Won't Start
Your Mysql configuration seems to be in bad shape. 1- Check if there are strange lines in your my.cnf configuration file starting with 'plugin-load'. Such lines should look like: (should only contain references to .so files) plugin-load=myplugin=somepluglib.so 2- Or maybe you have a corrupted 'mysql.plugin' table (or maybe a filesystem corruption... hope you have backups...)

Categories : Mysql

MySQL Windows service won't start
find physical database files on disk. back them up. restard host computer. then follow these steps: Click Start, click Run, type regedit.exe, and then click OK. Locate and then click the following registry subkey: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesTcpipParameters On the Edit menu, point to New, and then click DWORD Value. Type MaxUserPort and then press ENTER. Double-click the MaxUserPort value, and then type the maximum value in decimal or hexadecimal. You must type a number in the range of 500065534 (decimal). Setting this parameter to a value outside of the valid range causes the nearest valid value to be used (5000 or 65534). Click OK. Quit Registry Editor. restart host computer again. you should be fine now. The issue is caused because IIS is complete garba

Categories : Asp Net

MySQL Database won't start XAMPP
I had the same experience with xampp but I wasn't performing an update, this was a clean install. I have had good luck running MAMP right out of the box. This isn't exactly a direct answer to your problem, but if you just wanted to install something and get work done, MAMP could be an option. I did a couple of hours of googling and I still haven't figured out the xampp issue here...

Categories : PHP

MySQL won't start on XAMPP server
Check the log files for MySQL. You will find them in this directory: C:xamppmysqldata (assuming standard install location of xampp) Also check if no other program or service uses the default MySql port. You can do this by using this command: netstat -an | findstr "3306" If anything shows up the default mysql port is in use.

Categories : Mysql

Mysql.server start error
There are 2 cases when windows throws this error. 1) the software is not installed 2) the software is installed but Windows can't find the executable I assume you've used Windows Explorer to verify that the mySQL software exists on your computer. If not, please do. You can check the PATH from the command line. Just enter PATH. If the mySQL directory isn't listed in what's printed in response, and you used the Windows Installer to install the software, you probably need to reinstall it. The installer should have modified the PATH and, if it didn't, there may be other stuff it had trouble with too. If you want to add the mySQL directory to the PATH yourself you can do it through Start -> Settings -> Control Panel -> System -> Advanced tab -> Environment Variables button.

Categories : Mysql

Not able to start new server instance in MySQL workbench6.0.7
Actually this was the second time i was trying to install MySQL(first time it had crashed). while uninstalling the first time, it didnt remove some of the data folders. I had to delete MySQL Data folder from C:Documents and SettingsAll Users (manually) and reinstalled MYSQL workbench and the instance. It is working absolutely fine now...

Categories : Mysql

PHP MYSQL CONCAT with string containing comma in the start
values is a keyword of mysql. use backticks `` to mark it as a field name: $sql="update fields set `values`=CONCAT_WS(',',`values`, '$newval') where name='fundType'";

Categories : PHP

How to start process, then stop later in PHP, MySQL with AJAX
I looks like you want the behavior of ignore_user_abort($bool). But this alone won't help you much as PHP usually have a time limit of 30 seconds. set_time_limit($seconds) probably will help you with this. Keep in mind that the script will run on your webserver and the user will not have any way to kill the script if they make a mistake, so don't forget to add extra checks so your users don't spawn the script 10 times and let it run, especially if it's making phone calls! I'd suggest making a server script that runs outside of the web server, so you can communicate with the daemon and start/stop jobs on it. It's faily easy to do with simple sockets.

Categories : PHP

mysql unable to start service in my localhost
I googled and found this problem in the mysql page. It may help you. try this answers: http://forums.mysql.com/read.php?22,144428,249656#msg-249656 actually the next answer from Richard Lee may help more. http://forums.mysql.com/read.php?22,144428,250105#msg-250105

Categories : Mysql

MySQL query for select events between start/end date
try this SELECT id FROM events WHERE start BETWEEN '2013-06-13' AND '2013-07-22' AND end BETWEEN '2013-06-13' AND '2013-07-22' DEMO HERE output : ID 1 3 4

Categories : Mysql

Unable to start MySQL daemon: segmentation fault
I've found the problem: it seems that you can't add spaces to sql_mode. This bug happens to MySQL as well. So you have to write: sql_mode = "REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,TRADITIONAL" It seems a bug, since on MySQL and MariaDB documentations have examples with whitespaces. The strange fact is that I had to uninstall MariaDB and reinstall it to work again with it, but this time when I readded the sql_mode setting, started the daemon, removed the sql_mode and restarted the daemon, it worked and I had not to reinstall it another time.

Categories : Mysql

Automatically start (Apache, mysql and FTP) on Xampp startup (OSX)
Install and configure Homebrew (http://mxcl.github.io/homebrew/) or just use MAMP (http://www.mamp.info/en/index.html). Just not sure if MAMP has FTP.

Categories : Mysql

Why don't you start off with a "single & small" Cassandra server as you usually do it with MySQL?
TL;DR; You can even start with a single node, but you loose the highly available factor of c*. Cassandra is built for systems that handle huge volumes of data, terabytes and in some cases petabytes. Many users typically switch from MySQL (and lots of other RDBMS) to Cassandra once they find that their current DB system can't handle the data load efficiently (querying gets slow, managing storage becomes challenging etc.) Why 4-8GB gb of ram? The 4-8 GB of ram is to do with the JVM and the size of ram on efficient garbage collection. The advice is stating not that you should start on 8 GB, but hat you shouldn't have more than 8GB This doesn't mean to say that you cant use Cassandra to start up a single node on a very basic machine (some people actually have cassandra running on a ras

Categories : Database

Wamp MySQL will not start: unknown option '--skip-locking'
Your log belongs to MySQL. MySQL is not a web server and does not use port 80. The error is pretty self-explanatory: 2013-08-01 05:07:13 6132 [ERROR] wampmysqld: unknown option '--skip-locking' Do you mean --skip-external-locking by chance?

Categories : Mysql

php mysql search start & end dates fields for todays date if it falls inside range
You want start date to be less than today and end date to be greater than today isnt it? SELECT * FROM iwia_events WHERE event_start< now() AND event_stop > now() SQL fiddle example with your data structure here http://www.sqlfiddle.com/#!2/ee5dd/1/0

Categories : PHP

Setting start levels & auto-start of Eclipse plug-ins: p2.inf vs product definition
It really comes down to a personal preference. The product level is the ultimate final artifact most of the time. As you discovered, it has much better tooling integration. When the product is assembled by Tycho or PDE Build you'll know exactly what's in it and what needs to be started for it in order to work properly. However, sometimes it doesn't feel right to go down to the bundle granularity level in product definitions especially when it's composed of features only. But defining start properties at the feature level or even at the bundle level can be tricky, though. For example, when someone consumes your features/bundles in another product they might have different auto-start/start-level requirements. FWIW, the p2.inf file isn't outdated at all. It's the raw bare metal to modify/op

Categories : Eclipse

cdh4.3,Exception from the logs ,after ./start-dfs.sh ,datanode and namenode start fail
There seems to be a Name Resolution issue. Datanode denied communication with namenode: DatanodeRegistration(0.0.0.0, storageID=DS-30209445-192.168.2.41-50010-1371109358645, infoPort=50075, ipcPort=50020, Here DataNode is identifying itself as 0.0.0.0. Looks like dfs.hosts enforcement. Can you recheck on your NameNode's hdfs-site.xml configs that you are surely not using a dfs.hosts file? This error may arise if the datanode that is trying to connect to the namenode is either listed in the file defined by dfs.hosts.exclude or that dfs.hosts is used and that datanode is not listed within that file. Make sure the datanode is not listed in excludes, and if you are using dfs.hosts, add it to the includes. Restart hadoop after that and run hadoop dfsadmin -refreshNodes. HTH

Categories : Hadoop

Can't start unicorn, master failed to start, check stderr log for details
The socket is the "file" that nginx and unicorn use as a channel for all communication between them. Where have you defined it? In our unicorn configs, we usually have a line like this: listen APP_PATH + "/tmp/pid/.unicorn.sock Then, in your nginx.conf, you need to tell nginx about this socket, e.g.: upstream unicorn { server unix:/var/www/demo/tmp/pid/.unicorn.sock fail_timeout=0; } location / { root /var/www/demo/current/public ; try_files $uri @unicorns; } location @unicorns { proxy_pass http://unicorn; } In this config file, the first section defines how nginx can reach unicorn. The second one actually routes requests to an abstract location "@unicorns" which, in turn, is defined in the last section. This way you can reuse the @unicorns shorthand if your have more compl

Categories : Ruby On Rails

"launchctl start error: Bad file descriptor" when trying to start Neo4j server
I had to remove it from launchd and then it would work, like this: balinjdl-mac:local balinjdl$ neo4j start WARNING! You are using an unsupported version of the Java runtime. Please use Oracle(R) Java(TM) Runtime Environment 7. Using additional JVM arguments: -server -XX:+DisableExplicitGC Dorg.neo4j.server.properties=conf/neo4j-server.properties Djava.util.logging.config.file=conf/logging.properties Dlog4j.configuration=file:conf/log4j.properties -XX:+UseConcMarkSweepGC XX:+CMSClassUnloadingEnabled -Dneo4j.ext.udc.source=homebrew Detected installation in launchd, starting it... launchctl start error: Bad file descriptor balinjdl-mac:local balinjdl$ neo4j remove balinjdl-mac:local balinjdl$ neo4j start WARNING! You are using an unsupported version of the Java runtime. Please use Oracle

Categories : Osx

Re-start dependent OSGI bundles on dependency bundle re-start?
You can call refresh and all bundles will be restarted that had package wirings to the old API bundle. You can call refresh on the console or programmatically FrameworkWiring.refreshBundles(...) For more information you can check the javadoc of the mentioned function.

Categories : Java

How to start an Android Activity from an OSGI Bundle start method
I think my topic will provide a response to you, even if not perfect. You may also check FelixDroid which is using a different approach seen on other projects. However, I long for a better solution. Going to see if I can find or write a ContextWrapper that will fill the bill. Full Android support for OSGi bundles (Knopflerfish)

Categories : Android

How to discern between a drag start and a selection start HTML5-Canvas
When working with mouse primitives, there is no way to know if a mouse-down is part of a click, a double-click, or a drag until a subsequent event is fired. A mouse-down followed by a mouse-move is a drag (if the move is greater than some threshold, to allow for human motion while clicking) A mouse-down followed by a mouse-up is a click if the time span is too great to be a double-click. A mouse-down is a double-click if the down/up/down/up falls withing the double-click threshold. The difference between a drag and a rect-select is based (usually) on whether or not an object is present under the mouse position when the down is fired.

Categories : Javascript

Start another batch file with multiple parameters with the start command?
How to read parameters in a batch file: caller batch start "" "%dirofbatch%data1.exe" "%downloc%" "%dirofbatch%" "%lver%" "%lget%" called batch set "parm1=%~1" set "parm2=%~2" set "parm3=%~3" set "parm4=%~4" echo %parm1% %parm2% %parm3% %parm4%

Categories : Batch File

How can i start a timer like call log duration when activity start?
You can replace your textview by a Chronometer view, set his format using setFormat("HH:MM) and call to start() function when the activity is brought to front. Reference

Categories : Java

Process.Start() with arguments to start Google Chrome
You can use shortcut when call the chrome.exe instead using full path location. Module Module1 Sub Main() System.Diagnostics.Process.Start("chrome.exe", "--incognito") End Sub End Module More: start-google-chrome-from-run-windows-key-r UPDATE I found what is your problem in your code. Your code using –-incognito in the parameter, but it should be --incognito. See the first character in that parameter. Should be - instead –. Module Module1 Sub Main() System.Diagnostics.Process.Start("C:Program Files (x86)GoogleChromeApplicationchrome.exe", "--incognito") End Sub End Module

Categories : Dotnet

How to start Marquee text start from bottom of the screen?
<!DOCTYPE html> <html> <body bgcolor="#2E9AFE"> <marquee style="background-color: #2E9AFE; bottom: 0; color: #ffffff; height: 100%; position: absolute; text-align: center;" scrollamount="2" direction="up" loop="true"> <strong>I AM HERE<br/>Vx.0<br/><br/>DEVELOPER<br/>xxxxxx<br/><br/><br/>CONTACT US<br/>xxxxxx</strong> </marquee> </body> </html> Please note, to my knowledge this is not valid HTML. To validate, check out http://validator.w3.org. Also, there were two body tags (instead of one) and some other HTML that wasn't properly formatted, most of which I tried to address. If you're not yet familiar with CSS, just know that it's your friend. (In other words, you'd probably be

Categories : HTML

Start service via Application Start vs BOOT_COMPLETED
You can start the service manually with adb shell. See How to start and stop android service from a adb shell? The command is: am startservice com.your.package/.ServiceClassName Depending on the Android version the effective syntax may change slightly, for example: am startservice -n com.your.package/.ServiceClassName am startservice -a com.your.package/.ServiceClassName am startservice --user 0 -n com.your.package/.ServiceClassName

Categories : Android

Start an intent to start a specific tab of tab host
In the intent your are sending to TabExercise, you can send the tabindex you want to load, and then call setCurrentTab (int index). Did you try something like this?

Categories : Java

how to start Apache tomcat on system start up?
Install apache tomcat as windows service, and change its startup type as automatic use following link for more info http://tomcat.apache.org/tomcat-6.0-doc/windows-service-howto.html#Installing_services

Categories : Windows

mysql query for upcoming event with start date and end date and show past event
Though I doubt this is what you're after. I need to see expected results to better understand the question. SELECT Event_ID, EventStartDate, EventEndDate FROM Table ORDER BY EventStartDate

Categories : PHP

How to start a program on instance start on AWS EC2
userdata is only executed the very first time that the instance is created. This is by design. You've got a couple of options - all of which use your userdata script Copy the my_application.lnk to the startup folder Register the application in the registry "run" start key (http://blogs.msdn.com/b/powershell/archive/2006/04/25/how-to-access-or-modify-startup-items-in-the-window-registry.aspx) Register it with the task scheduler to configure it to execute on startup (http://technet.microsoft.com/en-us/library/bb490996.aspx)

Categories : Amazon

Button Start New Activity cannot start?
You should not do v.getContext()... You should use getApplicationContext().. The View v is the view you clicked on. So v.getContext() returns the context which the view runs on. This is the issue. I think using Application's context is better and doesn't cause an issue.

Categories : Java

Powershell Start-Process to start Powershell session and pass local variables
I'm pretty sure there's no direct way to pass variables from one PowerShell session to another. The best you can do is some workaround, like declaring the variables in the code you pass in -ArgumentList, interpolating the values in the calling session. How you interpolate the variables into the declarations in -ArgumentList depends on what types of variables. For an array and a string you could do something like this: $command = '<contents of your scriptblock without the curly braces>' Start-Process powershell -ArgumentList ("`$Array = echo $Array; `$String = '$String';" + $command)

Categories : Powershell

Unable to login to MYSQL getting error ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
It seems like a permission issue, try disabling selinuza by using setenforce 0, then restart the mysql service, also check if mysql has the right permissions on the mounted device (assuming you mounted as root or a sudo user that mysql cannot access)

Categories : Mysql

jQuery UI Picking a start and end date within range based on start date
Try using the ui onSelect callback instead of .change(), http://api.jqueryui.com/datepicker/#option-onSelect on init: var $datepickerStart = $("#datepickerStart"); $datepickerStart.datepicker({ onSelect: function( selectedDate ) { $datepickerStart.datepicker( "option", "minDate", selectedDate ); } });

Categories : Jquery

For a Zend form, how can I update the end date to automatically be one day after the start date when a start date is entered?
When you set the data-date property for the end assign it the value of date("Y-m-d", strtotime("+1 day")); $end_date = new Zend_Form_Element_Text('end_date', array( 'label' => 'End date', 'required' => false, 'filters' => array('StringTrim', 'StripTags'), 'class' => 'input-small datepicker', 'decorators' => $customElementDecorators, 'data-date' => date("Y-m-d", strtotime("+1 day")), 'data-date-format' => 'yyyy-mm-dd', 'value' => date("Y-m-d") ) );

Categories : PHP

How to Get The Given Months Number of Weeks and also week start from monday and end with friday. and also all week start date and end date
The following is part of a VERY simple PHP script for generating a calendar. You should be able to use/modify it to answer all your questions: class Calendar { public $calendar; public $current_date; public $current_month_days; public $current_date_str; public function __construct($month = FALSE, $expand = FALSE) { try { $date_obj = new DateTime($month); $this->current_date_str = $date_obj->getTimestamp(); } catch ( Exception $e ) { $this->current_date_str = time(); } $this->current_date = date('Y-m', $this->current_date_str); $this->get_current_month_days(); $this->build_calendar(); } public function get_current_month_days() { $days_in_m

Categories : PHP



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.