Error Cannot Find Sources Sql/mysqld.cc
Sign in Pricing Blog Support Search GitHub This repository Watch 332 Star 1,523 Fork 372 twitter/mysql Code Issues 3 Pull requests 0 Projects 0 Wiki Pulse Graphs Permalink Branch: master Switch branches/tags Branches Tags master mysql-5.5 statement-timeout t6-dev t7-dev t8-dev t9-dev t10-dev Nothing to show version_where_test_case_for_bug_31581_works ndb_local_dict_cache_removal mysqlsummit-0.2.1 mysqlsummit-0.2.1-build mysqlsummit-0.2.0 mysqlsummit-0.2.0-build mysql_4.0 mysql-5.5.44.t20 mysql-5.5.42 mysql-5.5.42.t19 mysql-5.5.41 mysql-5.5.40 mysql-5.5.40.t18 mysql-5.5.39 mysql-5.5.39.t17 mysql-5.5.38 mysql-5.5.37 mysql-5.5.37.t16 mysql-5.5.36 mysql-5.5.35 mysql-5.5.35.t15 mysql-5.5.35.t14.1 mysql-5.5.35.t14 mysql-5.5.34 mysql-5.5.34.t13 mysql-5.5.33 mysql-5.5.33.t12 mysql-5.5.32 mysql-5.5.31 mysql-5.5.31.t11.1 mysql-5.5.31.t11 mysql-5.5.30 mysql-5.5.29 mysql-5.5.29.t10.5 mysql-5.5.29.t10.4 mysql-5.5.29.t10.3 mysql-5.5.29.t10.2 mysql-5.5.29.t10.1 mysql-5.5.29.t10 mysql-5.5.28 mysql-5.5.28.t9 mysql-5.5.28.t8 mysql-5.5.27 mysql-5.5.25 mysql-5.5.24 mysql-5.5.24.t7 mysql-5.5.23 mysql-5.5.23.t6.1 mysql-5.5.23.t6 mysql-5.5.22 mysql-5.5.22.t5 mysql-5.5.21 mysql-5.5.21.t4 mysql-5.5.20 mysql-5.5.20.t3 mysql-5.5.19 mysql-5.5.19.t2 mysql-5.5.19.t1 mysql-5.5.18 mysql-5.5.17 mysql-5.5.16 mysql-5.5.15 mysql-5.5.14 mysql-5.5.13 mysql-5.5.12 mysql-5.5.11 mysql-5.5.10 mysql-5.5.9 mysql-5.5.8 mysql-5.5.7 mysql-5.5.6-rc mysql-5.5.5-m3 mysql-5.5.3-m3 mysql-5.5.2-m2 mysql-5.5.1-m2 mysql-5.5.0 mysql-5.4.3 mysql-5.4.2 mysql-5.4.1 mysql-5.1.73 mysql-5.1.72 mysql-5.1.71 mysql-5.1.70 mysql-5.1.69 mysql-5.1.69-retag mysql-5.1.68 mysql-5.1.67 mysql-5.1.66 mysql-5.1.65 mysql-5.1.63 mysql-5.1.62 mysql-5.1.61 mysql-5.1.60 mysql-5.1.59 mysql-5.1.58 mysql-5.1.57 mysql-5.1.56 mysql-5.1.55 mysql-5.1.54 mysql-5.1.53 Nothing to show Find file Copy path mysql/sql/mysqld.cc Fetching contributors… Cannot retrieve contributors at this time Raw Blame History 8260 lines (7410 sloc) 269 KB /* Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. Th
free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License as published by 5 the Free Software Foundation; version 2 of the License. 6 7 This program is distributed in the hope that it will be useful, 8 but WITHOUT ANY WARRANTY; without even the implied warranty of 9 MERCHANTABILITY or FITNESS https://github.com/twitter/mysql/blob/master/sql/mysqld.cc FOR A PARTICULAR PURPOSE. See the 10 GNU General Public License for more details. 11 12 You should have received a copy of the GNU General Public License 13 along with this program; if not, write to the Free Software 14 Foundation, Inc., 51 http://code.metager.de/source/xref/mysql-server/sql/mysqld.cc Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ 15 16#include "my_global.h" /* NO_EMBEDDED_ACCESS_CHECKS */ 17 18#include 22#include
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site http://stackoverflow.com/questions/14684063/mysql-source-error-2 About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up mysql: SOURCE error 2? up error cannot vote 30 down vote favorite 2 When I tried to source for a particular .sql file, namely 'metropolises.sql' that I created and saved previously from a database, the following error is displayed: Failed to open file 'metropolises.sql', error: 2 Any idea what went wrong? mysql share|improve this question edited Feb 4 '13 at 9:48 asked Feb 4 '13 at 9:46 Clueless Gorilla 3192511 1 error cannot find What does it mean to "try to source for a particuar .sql file"? –Lightness Races in Orbit Feb 4 '13 at 9:51 1 Did you mean "search"? –veljasije Feb 4 '13 at 9:54 I created a table in a database. Now, in order to get the data created, I typed SOURCE metropolises.sql; into the terminal, however the error message as described above showed up. Pretty sure there's no error in the table created. –Clueless Gorilla Feb 4 '13 at 10:22 add a comment| 12 Answers 12 active oldest votes up vote 49 down vote Assuming you mean that you are trying to use the source command in order to execute SQL statements from a text file, the error number given appears to be passed through from the POSIX layer. Therefore, using this resource, we can deduce that the error value of 2 means "no such file or directory". In short, you got the path wrong. Try providing an absolute path, as it's not clear what the current working directory will be in the context of your MySQL server. You may be assuming that it's the working directory of your shell, but i